﻿function checkData(form){	if (form.code_name.value == "" || form.code_name.value == "Your Name")	{	  alert("Please enter your name. ");	  form.code_name.focus();	  return false;	}	if (form.code.value == "" || form.code.value == "Secret Code")	{	  alert("Please enter your secret code.");	  form.code.focus();	  return false;	}	}			function checkDataRetailers(form){	if (form.state.value == "")	{	  alert(" Please choose your state. ");	  form.state.focus();	  return false;	}	return true;}			function bluranchors(){	if(document.getElementsByTagName) {		var a = document.getElementsByTagName("a");		for(var i = 0; i < a.length; i++){			a[i].onfocus = function(){this.blur();};		}	}}function image_swap_over(img){	document.image_swap_1.src=eval("document.image_swap_" + img + ".src");}function makepage(src){	 // We break the closing script tag in half to prevent	 // the HTML parser from seeing it as a part of	 // the *main* page.		 return "<html>\n" +	   "<head>\n" +	   "<title>Temporary Printing Window</title>\n" +	   "<script>\n" +	   "function step1() {\n" +	   "  setTimeout('step2()', 10);\n" +	   "}\n" +	   "function step2() {\n" +	   "  window.print();\n" +	   "  window.close();\n" +	   "}\n" +	   "</scr" + "ipt>\n" +	   "</head>\n" +	   "<body onLoad='step1()'>\n" +	   "<img src='" + src + "'/>\n" +	   "</body>\n" +	   "</html>\n";}function printme(evt){	 if (!evt) {	   // Old IE	   evt = window.event;	 }    	 var image = evt.target;	 if (!image) {	   // Old IE	   image = window.event.srcElement;	 }	 src = image.alt;	 link = "about:blank";	 var pw = window.open(link, "_new");	 pw.document.open();	 pw.document.write(makepage(src));	 pw.document.close();}