// JavaScript Document

function hmFlash()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="840" height="260"><param name="movie" value="flash/hmFlash.swf"><param name="wmode" value="transparent"><param name="quality" value="high"><embed src="flash/hmFlash.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="840" height="260"></embed></object>');
}

function contact()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="557"><param name="movie" value="../flash/locationMap.swf"><param name="quality" value="high"><embed src="../flash/locationMap.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="557"></embed></object>');
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function showPopup(URL)
{
if (screen.width > 800)
	{
	window.open(URL,"","width=620,height=500,left=80,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
	else
	{
	window.open(URL,"","width=620,height=500,left=114,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
}

function Popup(URL)
{
if (screen.width > 800)
	{
	window.open(URL,"","width=1200,height=700,left=0,top=50,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
	else
	{
	window.open(URL,"","width=620,height=440,left=114,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
}


function initScrollLayer()
{				
	var wndo1 = new dw_scrollObj('wn', 'lyr', 't1');				
	dw_scrollObj.GeckoTableBugFix('wn');
}

//function AllowNumber(evt)
//{
//var charCode = (evt.which) ? evt.which : event.keyCode 
////alert(charCode);
//if (charCode != 40 &&charCode != 41 &&charCode != 32 &&charCode != 43 && charCode > 31 && (charCode < 48 || charCode > 57))
//return false;

//return true;
//}
//function AllowArabic_Only(evt)
//{
//  var charCode = (evt.which) ? evt.which : event.keyCode
//  //alert(charCode);
//  if(charCode != 45 &&charCode != 44 && charCode != 124 &&  charCode != 32 &&  charCode != 40 &&  charCode != 41 && charCode != 1569 && charCode != 1572 && charCode != 1574 && charCode !=1575 && charCode != 1576  && charCode != 1577 && charCode != 1578 && charCode != 1579 && 
// 	   charCode != 1581 && charCode != 1582 && charCode != 1585 && charCode != 1586 && charCode != 1587 && charCode != 1588  && charCode!= 1589 && charCode != 1590 && charCode != 1593 && 
// 	   charCode != 1594 && charCode != 1601 && charCode != 1602 && charCode != 1604 && charCode != 1605  && charCode!= 1606 && charCode != 1607 && charCode != 1609 && charCode != 1610 && charCode != 46 && charCode != 63)
// 	   return false;  
//    
//  return true;
//}

function AllowArabic_Only(evt)
{ 
    var charCode = (evt.which) ? evt.which : event.keyCode
    
    if((charCode== 126 || charCode== 1617 || charCode== 33 || charCode== 64 || charCode== 35 || charCode== 36 || charCode== 37 || charCode== 94 || charCode== 38 || charCode== 42 || charCode== 41 || charCode== 40 || charCode== 43 || charCode== 124 || charCode== 92 || charCode==  61 || charCode== 45 )||(charCode >= 95 && charCode <= 122) || (charCode >= 65 && charCode <= 90))
		{
		    return false;	    
		}
   
   
    return true;
} 

function AllowArabic_Symbols(evt)
{        
  var charCode = (evt.which) ? evt.which : event.keyCode
  if (charCode != 13 && charCode != 32 && charCode != 33 && charCode != 34 && charCode != 35 && charCode != 36 && charCode != 37 && charCode != 38 && charCode != 39 && charCode != 40 && charCode != 41 && charCode != 42 && charCode != 43 && charCode != 44 && charCode != 45 && charCode != 46 && charCode != 47 && charCode != 48 && charCode != 49 && charCode != 50 && charCode != 51 && charCode != 52 && charCode != 53 && charCode != 54 && charCode != 55 && charCode != 56 && charCode != 57 && charCode != 58 && charCode != 59 && charCode != 60 && charCode != 61 && charCode != 62 && charCode != 63 && charCode != 64 && charCode != 91 && charCode != 92 && charCode != 93 && charCode != 94 && charCode != 95 && charCode != 96 && charCode != 123 && charCode != 124 && charCode != 125 && charCode != 126 && charCode != 1567 && charCode != 1569 && charCode != 1572 && charCode != 1574 && charCode != 1575 && charCode != 1576 && charCode != 1577 && charCode != 1578 && charCode != 1579 && charCode != 1580 && charCode != 1581 && charCode != 1582 && charCode != 1583 && charCode != 1584 && charCode != 1585 && charCode != 1586 && charCode != 1587 && charCode != 1588 && charCode != 1589 && charCode != 1590 && charCode != 1591 && charCode != 1592 && charCode != 1593 && charCode != 1594 && charCode != 1601 && charCode != 1602 && charCode != 1603 && charCode != 1604 && charCode != 1605 && charCode != 1606 && charCode != 1607 && charCode != 1608 && charCode != 1609 && charCode != 1610 && charCode != 1617)
    return false;
  return true;
} 

function AllowAlphaNumeric(evt)
{        
//  var charCode = (evt.which) ? evt.which : event.keyCode 
//  //alert(charCode);  
//  if(charCode != 45 &&charCode != 44 && charCode != 124 && charCode != 48 && charCode != 49 && charCode != 50 && charCode != 51 && charCode != 52 && charCode != 53 && charCode != 54 && charCode != 55 && charCode != 56 && charCode != 57  && charCode != 32 && charCode != 1569 && charCode != 1572 && charCode != 1574 && charCode !=1575 && charCode != 1576  && charCode != 1577 && charCode != 1578 && charCode != 1579 && 
// 	   charCode != 1581 && charCode != 1582 && charCode != 1585 && charCode != 1587 && charCode != 1588  && charCode!= 1589 && charCode != 1590 && charCode != 1593 && 
// 	   charCode != 1594 && charCode != 1601 && charCode != 1602 && charCode != 1604 && charCode != 1605  && charCode!= 1606 && charCode != 1607 && charCode != 1609 && charCode != 1610 && charCode != 46 && charCode != 63)
// 	   return false;  
//      
//    return true;  
var charCode = (evt.which) ? evt.which : event.keyCode
    
    if((charCode== 126 || charCode== 1617 || charCode== 33 || charCode== 64 || charCode== 35 || charCode== 36 || charCode== 37 || charCode== 94 || charCode== 38 || charCode== 42 || charCode== 41 || charCode== 40 || charCode== 43 || charCode== 124 || charCode== 92 || charCode==  61 || charCode== 45 )||(charCode >= 95 && charCode <= 122) || (charCode >= 65 && charCode <= 90))
		{
		    return false;	    
		}
   
   
    return true;
   
} 
function AllowNumber(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode 
//alert(charCode);
if (charCode != 40 &&charCode != 41 &&charCode != 32 &&charCode != 43 && charCode > 31 && (charCode < 48 || charCode > 57))
return false;

return true;
} 

function Allow_Age(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode 
//alert(charCode);charCode != 46 &&
if ( charCode != 32 &&charCode != 43 && charCode > 31 && (charCode < 48 || charCode > 57))
return false;

return true;
}

function AllowAlphaNumeric_Login(evt)
{        
  var charCode = (evt.which) ? evt.which : event.keyCode 
  //alert(charCode);  
  if(charCode == 126 || charCode == 33 || charCode == 64 || charCode == 96 || charCode == 35 || charCode == 36
  || charCode == 37 || charCode == 94 || charCode == 42 || charCode == 40 || charCode == 41 || charCode == 92
  || charCode == 124 || charCode == 61 || charCode == 47 || charCode == 44 || charCode == 59 || charCode == 39
  || charCode == 38 || charCode == 45 || charCode == 43 || charCode == 34 || charCode == 58 || charCode == 60
  || charCode == 62 || charCode == 63 || charCode == 91  || charCode ==  93 || charCode == 123 || charCode == 125)
 	   return false;  
      
    return true;  
   
}