<!--
function popform(emailx,itemx){ 
 var pwidth = 500;
 var pheight = 300; 
 var ptop = (screen.availHeight - pwidth) / 2;
 var pleft = (screen.availWidth - pheight) / 2;
 var newWin = window.open('','newWindow','width='+pwidth+',height='+pheight+',top='+ptop+',left='+pleft);
 
 newWin.focus();

 newWin.document.open();
 newWin.document.writeln("<style>");
 newWin.document.writeln(" * { font-family:Arial;Verdana; font-size:12; }");
 newWin.document.writeln(" .ftitle { font-weight:bold; font-size:18; background-color:silver; }");
 newWin.document.writeln(" .w100 { width:100px; }");
 newWin.document.writeln(" .itext { width:100%; }");
 newWin.document.writeln("</style>");

 newWin.document.writeln("<script>");
 newWin.document.writeln("function checkv(){");
 newWin.document.writeln(" var d = document.forms.enquiry; ");
 newWin.document.writeln(" if (!d.Name.value) { alert('Please enter your name.'); d.Name.focus(); return false; } ");
 newWin.document.writeln(" if (!d.EMAIL.value) { alert('Please enter your email.'); d.EMAIL.focus(); return false; } ");
 newWin.document.writeln(" if (!d.enquiry.value) { alert('Please enter your enquiry.'); d.enquiry.focus(); return false; } ");
 newWin.document.writeln(" alert('Thank you for submitting you enquiry to "+emailx+". The supplier will contact you as soon as possible.')");
// newWin.document.writeln(" window.close(); ");
 newWin.document.writeln("} ");
 newWin.document.writeln("</script>");

 newWin.document.writeln("<br />");
 newWin.document.writeln("<form method='post' name='enquiry' action='http://www.shopmall2u.com/store/?doit=enquiry' onsubmit='return checkv();'>");
 newWin.document.writeln("<input type='hidden' name='doit' value='enquiry'>");
 newWin.document.writeln("<table align='center' width='"+(pwidth*0.9)+"' >");
 newWin.document.writeln("<tr><td colspan='2' align='center'><div class='ftitle'>Enquiry Form</div></td></tr>");
 newWin.document.writeln("<tr><td class='w100'>Your Name: </td><td><input type='text' name='sendername' class='itext'></td></tr>");
 newWin.document.writeln("<tr><td class='w100'>Your Email: </td><td><input type='text' name='senderemail' class='itext'></td></tr>");
 newWin.document.writeln("<tr><td class='w100'>To: </td><td>"+emailx+"<input type='hidden' name='to' value='"+emailx+"'></td></tr>");
 newWin.document.writeln("<tr valign='top'><td class='w100'>Subject: </td><td>Enquiry on Item: "+itemx+" <input type='hidden' name='subject' value='Enquiry on Item: "+itemx+"'></td></tr>");
 newWin.document.writeln("<tr valign='top'><td class='w100'>Enquiry: </td><td><textarea name='comment' rows='5' class='itext'></textarea></td></tr>");
 newWin.document.writeln("<tr><td colspan=2 align='right'><a href='mailto:"+emailx+"?subject=Enquiry on Item: "+itemx+"&body="+itemx+"'>Mail to "+emailx+"</a> &nbsp; &nbsp; &nbsp; <input type='submit' value=' Submit '></td></tr>");
 newWin.document.writeln("</table>");
 newWin.document.writeln("</form>");

 newWin.document.close();
}
-->
