/*script for memory mirchi made by Er. Pradeep kr. */


/******************function for enquiry*****************/

function checkenquiry()
{
	docf=document.getElementById("frm");
	if(docf.name.value=='')
	{
		alert("Please enter your Name");
		docf.name.focus();
		return false;
	}	
	if(docf.company.value=='')
	{
		alert("Please enter your Company");
		docf.company.focus();
		return false;
	}
	if(docf.address.value=='')
	{
		alert("Please enter your address");
		docf.address.focus();
		return false;
	}
	if(docf.phone.value=='')
	{
		alert("Please enter phone");
		docf.phone.focus();
		return false;
	}
	if(docf.email.value=='')
	{
		alert("Please enter email Address");
		docf.email.focus();
		return false;
	}
if(docf.code_field.value=='')
	{
		alert("Please enter the code in above figure");
		docf.code_field.focus();
		return false;
	}

return validate_form(docf);
}

function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}

function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(email,"Not a valid e-mail address!")==false)
  		{
  			email.focus();
  			return false;
  		}
	}
	
}

/////////////////////////////////////////////////////////////////////////


function leftlinks()
{
document.write('<div align="center">');
document.write('<table border="0" cellspacing="1" cellpadding="0" width="162">');
document.write('<tr>');
document.write('<td width="162" height="8" class="leftlinks"></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="index.html" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HOME&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="about-us.html" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ABOUT US&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="krishan-chahal.html" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KRISHAN CHAHAL&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20" onMouseOver = "showObject13()" onMouseOut = "hideObject13()"><a href="#" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SERVICES&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;<div align=center><table border="0"  cellpadding="0" cellspacing="1"   bgcolor="#B5141C"  width="170"  id="design_table13" onMouseOver = "showObject13()" onMouseOut = "hideObject13()"><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'act1\' class="headerlinks1" onmouseover="document.getElementById(\'act1\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'act1\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="general-programs.html" class="headerlinks1" >GENERAL PROGRAMS &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'mic1\' class="headerlinks1" onmouseover="document.getElementById(\'mic1\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'mic1\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="corporate-workshop.html" class="headerlinks1" >CORPORATE WORKSHOP &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'stl\'  class="headerlinks1" onmouseover="document.getElementById(\'stl\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'stl\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="on-request-program.html" class="headerlinks1">ON REQUEST PROGRAM &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr></table></div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="products.html" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRODUCTS&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="event_gallery.php" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EVENT GALLERY&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20" onMouseOver = "showObject14()" onMouseOut = "hideObject14()"><a href="#" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MEDIA GALLERY&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;<div align=center><table border="0"  cellpadding="0" cellspacing="1"   bgcolor="#B5141C"  width="170"  id="design_table14" onMouseOver = "showObject14()" onMouseOut = "hideObject14()"><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'inm1\' class="headerlinks1" onmouseover="document.getElementById(\'inm1\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'inm1\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="international-media.html" class="headerlinks1" >INTERNATIONAL MEDIA &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'tvc1\' class="headerlinks1" onmouseover="document.getElementById(\'tvc1\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'tvc1\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="tv-channel.html" class="headerlinks1" >TV CHANNEL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'prml\'  class="headerlinks1" onmouseover="document.getElementById(\'prml\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'prml\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="media_gallery.php" class="headerlinks1">PRINT MEDIA &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr></table></div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="benefits.html" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BENEFITS&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr >');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20" onMouseOver = "showObject15()" onMouseOut = "hideObject15()"><a href="#" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TESTIMONIALS&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;<div align=center><table border="0"  cellpadding="0" cellspacing="1"   bgcolor="#B5141C"  width="170"  id="design_table15" onMouseOver = "showObject15()" onMouseOut = "hideObject15()"><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'tes1\' class="headerlinks1" onmouseover="document.getElementById(\'tes1\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'tes1\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="testimonials-opinion.php" class="headerlinks1" >OPINIONS &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr><tr><td width="170" height="20" id=\'vio1\' class="headerlinks1" onmouseover="document.getElementById(\'vio1\').bgColor=\'#FF3300\';" onmouseout="document.getElementById(\'vio1\').bgColor=\'#B5141C\';" style="padding-left:10px;"><a href="video-opinion.html" class="headerlinks1" >VIDEO OPINION &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr><tr><td width="170" bgcolor="#C3484E" height="1"></td></tr></table></div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" class="leftlinks" align="right" height="1" bgcolor="#C3484E" ></td>');
document.write('</tr>');
document.write('<tr onmouseover=this.bgColor="#FF3300" onmouseout=this.bgColor="">');
document.write('<td width="162" class="leftlinks" align="right" height="20"><a href="articles.html" class="leftlinks">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARTICLES&nbsp;&nbsp;&nbsp;<img border="0" src="image/arrow-wihte.gif" width="3" height="5">&nbsp;&nbsp;&nbsp;</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="162" height="2" class="leftlinks"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

}
////////////////////////////////////////////////////


function showObject13()
{

var browser=navigator.appName;
	 //alert(browser);
   if(browser=="Netscape"){
if(screen.width <= 800){

document.getElementById('design_table13').style.left = "198";
document.getElementById('design_table13').style.top = "196";
document.getElementById('design_table13').style.visibility = "visible";
}
else if(screen.width <= 1024)
{
document.getElementById('design_table13').style.left = "202";
document.getElementById('design_table13').style.top = "196";
document.getElementById('design_table13').style.visibility = "visible";
}

else if(screen.width <= 1152)
{
document.getElementById('design_table13').style.left = "266";
document.getElementById('design_table13').style.top = "196";
document.getElementById('design_table13').style.visibility = "visible";
}

else{
	document.getElementById('design_table13').style.left = "330";
	document.getElementById('design_table13').style.top = "196";
	document.getElementById('design_table13').style.visibility = "visible";
}

}
else{
			if(screen.width <= 800){
			document.getElementById('design_table13').style.left = "198";
			document.getElementById('design_table13').style.top = "196";
			document.getElementById('design_table13').style.visibility = "visible";
			}
			else if(screen.width <= 1024)
			{
			document.getElementById('design_table13').style.left = "198";
			document.getElementById('design_table13').style.top = "196";
			document.getElementById('design_table13').style.visibility = "visible";
			}

			else if(screen.width <= 1152)
			{
			document.getElementById('design_table13').style.left = "263";
			document.getElementById('design_table13').style.top = "196";
			document.getElementById('design_table13').style.visibility = "visible";
			}
			
			else{
				document.getElementById('design_table13').style.left = "327";
			document.getElementById('design_table13').style.top = "196";
			document.getElementById('design_table13').style.visibility = "visible";
			}
   }
}
function hideObject13()
{

document.all.design_table13.style.visibility = "hidden";
}
//////////////////////

function showObject14()
{

var browser=navigator.appName;
	 //alert(browser);
   if(browser=="Netscape"){
if(screen.width <= 800){

document.getElementById('design_table14').style.left = "198";
document.getElementById('design_table14').style.top = "265";
document.getElementById('design_table14').style.visibility = "visible";
}
else if(screen.width <= 1024)
{
document.getElementById('design_table14').style.left = "202";
document.getElementById('design_table14').style.top = "265";
document.getElementById('design_table14').style.visibility = "visible";
}

else if(screen.width <= 1152)
{
document.getElementById('design_table14').style.left = "266";
document.getElementById('design_table14').style.top = "265";
document.getElementById('design_table14').style.visibility = "visible";
}

else{
	document.getElementById('design_table14').style.left = "329";
	document.getElementById('design_table14').style.top = "265";
	document.getElementById('design_table14').style.visibility = "visible";
}

}
else{
			if(screen.width <= 800){
			document.getElementById('design_table14').style.left = "198";
			document.getElementById('design_table14').style.top = "265";
			document.getElementById('design_table14').style.visibility = "visible";
			}
			else if(screen.width <= 1024)
			{
			document.getElementById('design_table14').style.left = "198";
			document.getElementById('design_table14').style.top = "265";
			document.getElementById('design_table14').style.visibility = "visible";
			}
			else if(screen.width <= 1152)
			{
			document.getElementById('design_table14').style.left = "263";
			document.getElementById('design_table14').style.top = "265";
			document.getElementById('design_table14').style.visibility = "visible";
			}
			else{
				document.getElementById('design_table14').style.left = "327";
			document.getElementById('design_table14').style.top = "265";
			document.getElementById('design_table14').style.visibility = "visible";
			}
   }
}
function hideObject14()
{

document.all.design_table14.style.visibility = "hidden";
}
//////////////////////

function showObject15()
{

var browser=navigator.appName;
	 //alert(browser);
   if(browser=="Netscape"){
if(screen.width <= 800){

document.getElementById('design_table15').style.left = "198";
document.getElementById('design_table15').style.top = "311";
document.getElementById('design_table15').style.visibility = "visible";
}
else if(screen.width <= 1024)
{
document.getElementById('design_table15').style.left = "202";
document.getElementById('design_table15').style.top = "311";
document.getElementById('design_table15').style.visibility = "visible";
}

else if(screen.width <= 1152)
{
document.getElementById('design_table15').style.left = "266";
document.getElementById('design_table15').style.top = "311";
document.getElementById('design_table15').style.visibility = "visible";
}
else{
	document.getElementById('design_table15').style.left = "327";
	document.getElementById('design_table15').style.top = "311";
	document.getElementById('design_table15').style.visibility = "visible";
}

}
else{
			if(screen.width <= 800){
			document.getElementById('design_table15').style.left = "198";
			document.getElementById('design_table15').style.top = "311";
			document.getElementById('design_table15').style.visibility = "visible";
			}
			else if(screen.width <= 1024)
			{
			document.getElementById('design_table15').style.left = "198";
			document.getElementById('design_table15').style.top = "311";
			document.getElementById('design_table15').style.visibility = "visible";
			}
			else if(screen.width <= 1152)
			{
			document.getElementById('design_table15').style.left = "263";
			document.getElementById('design_table15').style.top = "311";
			document.getElementById('design_table15').style.visibility = "visible";
			}
			else{
				document.getElementById('design_table15').style.left = "327";
			document.getElementById('design_table15').style.top = "311";
			document.getElementById('design_table15').style.visibility = "visible";
			}
   }
}
function hideObject15()
{

document.all.design_table15.style.visibility = "hidden";
}

//////////////////////////////////////////////////////////////////////////


/********function for main flash**********************/

function mainflash()
{
document.write('<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 height="241" width="550">');
document.write('<param name="Movie" value="home_flash.swf">');
document.write('<param name="Src" value="home_flash.swf">');
document.write('<param name="WMode" value="Transparent">');
document.write('<param name="Quality" value="High">');
document.write('<param name="Menu" value="0">');
document.write('<param name="Scale" value="NoBorder">');
document.write('<param name="ProfilePort" value="0">');
document.write('<embed src="home_flash.swf" menu="false" quality="best"  wmode="transparent" bgcolor="#000000" WIDTH="550" HEIGHT="241" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('</OBJECT>');
}

//////////////////////////////////////////////////////////////////////////////

/******************FUNCTION FOR FEEDBACK FORM***************************/


function check_feedbackform()
{
	
	docf=document.getElementById("frm3");
	
	if(docf.name.value=='')
	{
		alert("Please enter your Name");
		docf.name.focus();
		return false;
	}
	
	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}

	if(docf.city.value=='null')
	{
		alert("Please enter City Name");
		docf.city.focus();
		return false;
	}
	if(docf.country.value=='Select a country')
	{
		alert("Please enter Country Name");
		docf.country.focus();
		return false;
	}
	
	if(docf.sitelayout.value=='')
	{
		alert("Please enter Rating Factor");
		docf.sitelayout.focus();
		return false;
	}

  if(docf.loadtime.value=='')
	{
		alert("Please enter Rating Factor");
		docf.loadtime.focus();
		return false;
	}
	if(docf.sectionhead.value=='')
	{
		alert("Please enter Rating Factor");
		docf.sectionhead.focus();
		return false;
	}
	if(docf.userfriendly.value=='')
	{
		alert("Please enter Rating Factor");
		docf.userfriendly.focus();
		return false;
	}
	if(docf.phone.value=='')
	{
		alert("Please enter your Phone");
		docf.phone.focus();
		return false;
	}
if(docf.comments.value=='')
	{
		alert("Please enter your Comments");
		docf.comments.focus();
		return false;
	}

	if(docf.reply.value=='')
	{
		alert("Please enter Would you like to receive reply?");
		docf.reply.focus();
		return false;
	}


if(docf.code_field.value=='')
	{
		alert("Please enter the Code above in Figure");
		docf.code_field.focus();
		return false;
	}


	 return validate_form(docf);
	
}

function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}


function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(email,"Not a valid e-mail address!")==false)
  		{
  			email.focus();
  			return false;
  		}
	}
	
}

//////////////////////////////////////////////////////////////////////////////

/******************FUNCTION VIEDO***************************/


function enlarge(img,cod,len,brd,titl)
{	
	var win = window.open("","win",'width='+brd+',height='+len+',resizable=yes'); // a window object
	win.document.open("text/html","replace");
	win.document.write("<HTML><HEAD><TITLE>"+titl+"</TITLE></HEAD><BODY topmargin='0' leftmargin='0'><embed width='100%' height='100%' src="+img+"></BODY></HTML>");
	win.document.close();	
}
