

//Script for Timeclock


 
document.write(Date())


//Function for title font size



txtsize=0
maxsize=30

function writemsg()
{
if (txtsize<maxsize)
	{
	document.getElementById('msg').style.fontSize=txtsize 
	txtsize++
	timer=setTimeout("writemsg()",10)
	}
}


function stoptimer()
{
clearTimeout(timer)
} 




//Email Validate

function validate_email(field,alerttxt)
{
with (field)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2) 
  {alert(alerttxt);return false;}
else {return true;}
}
}function validate_form(thisform)
{
with (thisform)
{
if (validate_email(email,"Not a valid e-mail address!")==false)
  {email.focus();return false;}
}
}


//FIELDS VALIDATES

function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false;}
else {return true}
}
}function validate_form(thisform)
{
with (thisform)
{
if (validate_required(field,"All must be filled out!")==false)
  {field.focus();return false;}
}
}




//Function for popup imageWindows


var imageWindow;
function showWindow(link){
imageWindow=
window.open(link,"show1","scrollbars=yes,menubar=no,resizable=yes,height=600");


  if(imageWindow.open){
   imageWindow.close;
 }
     imageWindow.focus();
}


//Function for popup

var smallWindow;
function newWindow(link){
 smallWindow= window.open(link,"new1","scrollbars=yes,menubar=no,resizable=yes,width=600,height=495");


  if(smallWindow.open){
   smallWindow.close;
 }
     smallWindow.focus();
}

//Function for E-Commerce

var thisWindow;
function popWindow(link){
 thisWindow= window.open(link,"pop1","scrollbars=no,menubar=no,resizable=no width=440 height=600");


  if(thisWindow.open){
   thisWindow.close;
 }
     thisWindow.focus();
}



//Function for Order


var printWindow;
function orderWindow(link){
printWindow=
window.open(link,"ordre1","scrollbars=yes,menubar=no,resizable=yes, width=540, height=400");


  if(printWindow.open){
   printWindow.close;
 }
     printWindow.focus();
}


