function myopen(filename,windowname,properties) {
	mywindow = window.open(filename,'windowName','toolbar=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600')
//	mywindow = window.open(filename,'windowName','toolbar=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=680,height=440')
//	mywindow.document.write('<div style=\"center\">close<div><br />' + mywindow.document.head());
}

function validate(form) {
var valid = false;
for (var i=0;i<form.length && !valid;i++)
{
	if (/text|select/.test(form[i].type) && form[i].value != "")
	{
//Test for only number chars (\d+) , from begin (^) to end ($) of the string.
//		if (/(^\d+$)/.test(form[i].value))

//Test for only number chars from 1 to 9 (zero not allowd) ([1-9\d*) , from begin (^) to end ($) of the string.
		if (/(^[1-9]\d*$)/.test(form[i].value))

		{valid = true;}
		else
		{form[i].value=null}
	}
}	
    if (!valid)
    {alert("Please enter a valid whole number!")}
   return valid;
}

function showprint(){
if (window.print)
{document.write('<form><input type=button name=print value="Print" onClick="javascript:window.print()"> this page!</form>');}
}

function PW1() {
document.write("21009");
}

function fix_mailaddress(){
 //enter character(s) from email address that are to be replaced with @
var emailghost="~at~";
for (i = 0; i <= (document.links.length-1); i++)
  {
	if (document.links[i].href.indexOf(emailghost)!=-1)
		{document.links[i].href = document.links[i].href.split(emailghost)[0]+"@"+document.links[i].href.split(emailghost)[1];}
  }
}

//href="javascript:sendEmailTo('inquiry','Mail from Bisel Web Site')
function sendEmailTo(name,subject) {
	var domname = "bisel" + "." + "com";
	var emailstring = "mai" + "lto:" + name + "@" + domname + "?subje" + "ct=" + subject;
	window.location.replace(emailstring);
}

function CompanyAge() {
var d = new Date()
var yr = d.getFullYear();
document.write(new String(yr-1876)); 
}

function CopyrightFooter() {
var d = new Date()
var yr = d.getFullYear();
document.writeln("<hr />");
document.writeln("<div align=center class='CopyrightFooterGrey'>");
document.writeln("Copyright &copy; " + yr + " George T. Bisel Co., Inc.");
document.writeln("&#149; 710 S. Washington Square"); 
document.writeln("&#149; Philadelphia, PA 19106");
document.writeln("&nbsp;&nbsp;<span class='CopyrightFooterLink'><a href='http://www.bisel.com' class='footerLink'>Home</a></span>");
document.writeln("</div>");
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

