function footer()
{	
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="100%" bgcolor="#621704" height="2"></td></tr>');
	document.write('<tr><td width="100%" height="15" class="footer" align="center">');
	document.write('<div align="center"><center>© Copyright Mobile-Handsets.com | Website Powered by <a href="http://www.emavens.com" target="_blank" class="footer">eMaven Solutions</a></center></div>');
	document.write('</td></tr></table>');
}

function leftpanel()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="231">');
	document.write('<tr><td style="background-image: url(\'images/internal/side_links_top.jpg\'); background-repeat: no-repeat" height="29"></td></tr>');
	document.write('<tr><td style="background-image: url(\'images/internal/side_links_middle.jpg\'); background-repeat: repeat-y">');
	document.write('<div align="center">');
	document.write('<table border="0" cellpadding="2" cellspacing="0" width="100%">');
	document.write('<tr><td width="8%" height="1"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%" height="1"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" height="21"><a href="#" class="sidelink">Phone Models</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%" height="1"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%" height="1"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21" ><a href="#" class="sidelink">Latest Phone Models</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Most Popular Phone Models</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Cheapest Phone Models</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Mobile Phone Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Nokia Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Samsung Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Sony Ericsson Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Siemens Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Alcatel Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Motorola Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">LG Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%"  height="21"><a href="#" class="sidelink">Sagem Ringtones</a></td><td width="7%"></td></tr>');
	document.write('<tr><td width="8%"></td><td width="85%" style="background-image: url(\'images/internal/dot_link.gif\'); background-repeat: repeat-x" height="1"></td><td width="7%"></td></tr>');
	document.write('</table>');
	document.write('</div></td></tr>');
	document.write('<tr><td style="background-image: url(\'images/internal/side_links_bottom.jpg\'); background-repeat: no-repeat" height="29"><p align="center"></td></tr>');
	document.write('</table>');
}

function top()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td height="50" bgcolor="#E5E5E5" align="left"><img border="0" src="images/mobile_handset_logo.jpg" width="276" height="28"  style="margin-left:30" alt="mobile handset"></td></tr>');
	document.write('<tr><td><div align="center">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="23" class="left_top" height="40"></td><td width="954" class="bg_top" height="40">');
	document.write('<div align="center"><center>');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="toplink"><tr>');
	document.write('<td width="8%" align="center"><b><a href="index.html" class="toplink">Home</a></b></td>');
	document.write('<td width="10%" align="center"><b><a href="#" class="toplink">Handsets</a></b></td>');
	document.write('<td width="12%" align="center"><b><a href="#" class="toplink">Handset Prices</a></b></td>');
	document.write('<td width="14%" align="center"><b><a href="#" class="toplink">Handset Features</a></b></td>');
	document.write('<td width="13%" align="center"><b><a href="#" class="toplink">Handset Reviews</a></b></td>');
	document.write('<td width="10%" align="center"><b><a href="#" class="toplink">Feedback</a></b></td>');
	document.write('<td width="15%" align="center"><b><a href="#" class="toplink">Cellular Sbscribers</a></b></td>');
	document.write('<td width="18%" align="center"><b><a href="#" class="toplink">Handsets New Launches</a></b></td>');
	document.write('</tr></table>');
	document.write('</center></div>');
	document.write('</td><td width="23" class="right_top" height="40"></td></tr>');
	document.write('</table></div></td></tr>');
	document.write('</table>');
}

function subtop()
{
document.write('<table border="0" cellpadding="0" cellspacing="0" width="1000"><tr>');
document.write('<td width="451" style="background-image: url(\'images/bg-flash_left.jpg\'); background-repeat: no-repeat"  height="130"></td>');
document.write('<td width="333" style="background-image: url(\'images/bg-flash_center.jpg\'); background-repeat: no-repeat" height="130"></td>');
document.write('<td width="216" style="background-image: url(\'images/bg-flash_right.jpg\'); background-repeat: no-repeat" height="130"></td>');
document.write('</tr></table>');
}

function checkenquiry()
{
	//alert("Hello");
	docf=document.frm;
	if(docf.name.value=="")
	{
	alert("Plese enter your name !")
	docf.name.focus();
	return false;
	}

	if(docf.address.value=="")
	{
	alert("Please enter your Address !");
	docf.address.focus();
	return false;
	}

	if(docf.country.value=="NA")
	{
	alert("Please enter your Country")
	docf.country.focus();
	return false;	
	}

	if(docf.email.value=="")
	{
	alert("Please enter your email id !")
	docf.email.focus();
	return false;
	}

	if(docf.enquiry.value=="")
	{
	alert("Please enter Enquiry/Comment !")
	docf.enquiry.focus();
	return false;
	}

	if(docf.codefield.value=="")
	{
	alert("Please enter the code !")
	docf.codefield.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 for advertise form.........

function check_advertiseform()
{
	
	docf=document.getElementById("frm1");
	

	if(docf.company.value=='')
	{
		alert("Please enter Company name");
		docf.company.focus();
		return false;
	}
if(docf.firstname.value=='')
	{
		alert("Please enter your First Name");
		docf.firstname.focus();
		return false;
	}


	if(docf.lastname.value=='')
	{
		alert("Please enter your Last Name");
		docf.lastname.focus();
		return false;
	}
	
	if(docf.address.value=='')
	{
		alert("Please enter Address");
		docf.address.focus();
		return false;
	}

	if(docf.city.value=='Select city')
	{
		alert("Please enter City Name");
		docf.city.focus();
		return false;

	}

	if(docf.postcode.value=='')
	{
		alert("Please enter Postcode");
		docf.postcode.focus();
		return false;
	}
	if(docf.country.value=='Select a country')
	{
		alert("Please enter Country Name");
		docf.country.focus();
		return false;
	}
	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}

	if(docf.phone.value=='')
	{
		alert("Please enter your Phone");
		docf.phone.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;
  		}
	}
	
}

/////////////////////////////////////////////////////////////////////////

