function tellfriend()
{ 
	Window=open("","","width=400,height=400,top=100,left=200");
	Window.document.open();
	Window.document.write("<html><head><title>Tell a Friend</title><link href='sikkiminfo.css' rel=StyleSheet type='text/css'></head>");
	Window.document.write("<body background='images/bg.jpg'><p><b><center><font color='#800000' face='Arial' size='4'> TELL A FRIEND  </center></b></p></font>");
	Window.document.write("<form name='myform' method='POST' action='tellafriend.php'>");
	Window.document.write("<div align='center'><center><table border='0' cellpadding='0' cellspacing='0' width='80%' ><tr><td colspan=2></td></tr>");
	Window.document.write("<tr><td width='50%'><b>* Your Name :</b></td><td><input class='popline' type=text name='name' size='25'> </td></tr>");
	Window.document.write("<tr><td width='50%'><b>* Your Email :</b></td><td><input class='popline'  type=text name='email' size='25'> </td></tr>");
	Window.document.write("<tr><td width='50%'><b>* Friend's Name :</b></td><td><input class='popline'  type=text name='fname' size='25'> </td></tr>");
	Window.document.write("<tr><td width='50%'><b>* Friend's Email :</b></td><td><input  class='popline' type=text name='femail' size='25'> </td></tr>");
	Window.document.write("<tr><td width='50%'><b>Message :</b></td><td><textarea name='comment' cols='20' rows='10'></textarea> </td></tr>");
	Window.document.write("<tr><td colspan=2 align=center><image src='images/send.gif' name='send'></td></tr>");
	Window.document.write("</table></center></div>");
	Window.document.send.onclick=check1;
	Window.document.write("</form></body></html>");
	Window.focus();
}

function check1()
{
	var formcheck1=Window.document.myform.name.value;
	var formcheck2=Window.document.myform.email.value;
	var formcheck3=Window.document.myform.fname.value;
	var formcheck4=Window.document.myform.femail.value;
	
	if (formcheck1=="" || formcheck2=="" || formcheck3=="" || formcheck4=="")
		Window.alert('Please fill up the fields marked  *');
	else
		Window.document.myform.submit();

}
