
function writeFlash (flashID, flashMovie, width, height) {

	var t ="";
	t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="wmode" value="transparent" quality="high">';
	t += '		<embed wmode="transparent" src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
	document.write (t);
}





function movepic(img_name,img_src) {
document[img_name].src=img_src;
}








<!------------------------------------ DHTML email validation script -------------------------->

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    return false
		 }

 		 return true					
	}
<!------------------------------------ DHTML email validation script end -------------------------->




<!------------------------------------ onlyDigits -------------------------->
function onlyDigits(e) {
var _ret = true;
if (window.event.keyCode < 46 || window.event.keyCode > 57) {
window.event.keyCode = 0;
_ret = false;
}
return (_ret); 
}
<!------------------------------------ onlyDigits  end -------------------------->





   
   
   
 
   
   
   
   
   
   
   
   
   
   
   




function CleanContact(){
document.form.reset();
}




    
    














    
    

    
    
    
    
    
    
      
    
    
    
    
    
    <!-------------------- load to div---------------------->

function ahah(url, target) {
  document.getElementById(target).innerHTML = '';
 
  if (window.XMLHttpRequest) {
  
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
  
     
    req = new ActiveXObject("Msxml2.XMLHTTP");

  }
  

  if (req != undefined) {
    req.onreadystatechange = function() {ahahDone(url, target);};
    req.open("GET", url, true);
    req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=windows-1255");
    req.send(null);
  }
}  


function ahahDone(url, target) {

  if (req.readyState == 4) { // only if req is "loaded"
  
    if (req.status == 200) { // only if "OK"
          document.getElementById(target).innerHTML = req.responseText;
         
    } else {
      document.getElementById(target).innerHTML=" AHAH Error:\n"+ req.status + "\n" +req.statusText;
    }
  }
}



function ahah2(url, target,url2, target2) {

  document.getElementById(target).innerHTML = '';
 
  if (window.XMLHttpRequest) {
  
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
  
     
    req = new ActiveXObject("Msxml2.XMLHTTP");

  }
  

  if (req != undefined) {
    req.onreadystatechange = function() {ahahDone2(url, target,url2, target2);};
    req.open("GET", url, true);
    req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=windows-1255");
    req.send(null);
  }
}  

function ahahDone2(url, target,url2, target2) {

  if (req.readyState == 4) { // only if req is "loaded"
  
    if (req.status == 200) { // only if "OK"
          document.getElementById(target).innerHTML = req.responseText;
          
           loadReturn(url2, target2);
         
    } else {
      document.getElementById(target).innerHTML=" AHAH Error:\n"+ req.status + "\n" +req.statusText;
    }
  }
 
}

function ahahDoneReturn(url, target) {

  if (req.readyState == 4) { // only if req is "loaded"
  
    if (req.status == 200) { // only if "OK"
          document.getElementById(target).innerHTML = req.responseText;

          
          if (document.getElementById('sendf').value == "here") { 
	
               load('MainBanner_inc.asp', 'reg_div');
            }
          
         
    } else {
      document.getElementById(target).innerHTML=" AHAH Error:\n"+ req.status + "\n" +req.statusText;
    }
  }
 
}

function ahahReturn(url, target) {

  document.getElementById(target).innerHTML = '';
 
  if (window.XMLHttpRequest) {
  
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
  
     
    req = new ActiveXObject("Msxml2.XMLHTTP");

  }
  

  if (req != undefined) {
    req.onreadystatechange = function() {ahahDoneReturn(url, target);};
    req.open("GET", url, true);
    req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=windows-1255");
    req.send(null);
  }
}  

function load(name, div) {
return	ahah(name,div);
}


function load2(name1, div1,name2, div2) {
return	ahah2(name1, div1,name2, div2);
}

function loadReturn(name, div) {
return	ahahReturn(name,div);
}
function loadunload(name, div) {
if (document.getElementById(div).innerHTML == "") { 
	ahah(name,div);
    }
else{
    document.getElementById(div).innerHTML = "";
   }
}


<!--------------------load to div end ------------------->







function HebDecode(str) { 
   var str2="";
   var ch;
   
  if(str!="")
  {
   for (j=0;j<str.length;j++)
        {
		ch=str.charCodeAt(j);
		if (str2=='')
		{str2=ch}
		else
		{str2=str2+','+ch}
		
		}
   return str2;
   }
 }
 

function changestyle(className, id)
	{
  
  var itm = null;
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all){
			itm = document.all[id];
		} else if (document.layers){
			itm = document.layers[id];
		}
   itm.className=className;
   

}
 
 

    
   

