

function openWindow (strImage)
{
  var generator=window.open('','name','height=660,width=600');
  
  generator.document.write('<html><head><title>Royal Rich (China) Limited Chinese Garlic - Photos</title> \n');
  generator.document.write('<link rel=\"stylesheet\" href=\"stylesheet.css\"> \n');
  generator.document.write('</head><body><center>');
  if (strImage != "")
  {
    generator.document.write('<br><center><img src="' + strImage + '"></center> \n');
  }
  else
  { 
    generator.document.write('<h1>Coming Soon</h1> \n');
  }
  generator.document.write('<p><center><a href="javascript:self.close()"><b>Click to close</b></a> the popup window.</center></p> \n');
  generator.document.write('</center></body></html> \n');
  generator.document.close();


}


function text() {
};


function buildSpamProof()
{
text = new text();
number = 0;

// textArray
text[number++] = "proof1.gif"
text[number++] = "proof2.gif"
text[number++] = "proof3.gif"


increment = Math.floor(Math.random() * number);

document.write("<img src='"+ text[increment] + "' id='proof' name='proof' style='margin: 0 10 -3 10'>");
document.contactus.spam.value=text[increment];

}



function SubmitForm()
{

   var errors = "";
   if (document.contactus.spam.value == "proof1.gif" && document.contactus.spamproof.value == "IF136") {
	alert ('thank you');
	return true;
   }
   else if (document.contactus.spam.value == "proof2.gif" && document.contactus.spamproof.value == "8H7JP") {
	alert ('thank you');
	return true;
   }
   else if (document.contactus.spam.value == "proof3.gif" && document.contactus.spamproof.value == "9L7Y2") {
	alert ('thank you');
	return true;
   }


   else { alert ('Please Enter Security Code');
	return false;}

}
      
