
var day="";
var month="";
var myweekday="";
var year="";
mydate = new Date();
myhours = mydate.getHours();
mymin=mydate.getMinutes()
var amOrPm = "AM";
if (myhours > 11) amOrPm = "PM";
if (myhours > 12) myhours = myhours - 12;
if (myhours == 0) myhours = 12;
if (mymin <= 9) mymin = "0" + mymin;
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
if (myweekday==1 || myweekday==21 || myweekday==31) {
myweekday=(myweekday +"st")
}
else if(myweekday==2 || myweekday==22) {
myweekday=(myweekday +"nd")
}
else if(myweekday==3 || myweekday==23) {
myweekday=(myweekday +"rd")
}
else
{
myweekday=(myweekday +"th")
}
weekday= myweekday;
myyear= mydate.getFullYear();
if (myyear==101) {
myyear=2001
}
year = myyear
if(myday == 0)
day = " Sunday, "      
else if(myday == 1)
day = " Monday, "
else if(myday == 2)
day = " Tuesday, "   
else if(myday == 3)
day = " Wednesday, "   
else if(myday == 4)
day = " Thursday, "
else if(myday == 5)
day = " Friday, "
else if(myday == 6)
day = " Saturday, "
if(mymonth == 0) {
month = "January "}
else if(mymonth ==1)
month = "February "
else if(mymonth ==2)
month = "March "
else if(mymonth ==3)
month = "April "
else if(mymonth ==4)
month = "May "
else if(mymonth ==5)
month = "June "
else if(mymonth ==6)
month = "July "
else if(mymonth ==7)
month = "August "
else if(mymonth ==8)
month = "September "
else if(mymonth ==9)
month = "October "
else if(mymonth ==10)
month = "November "
else if(mymonth ==11)
month = "December "

<!-- Script which you call with URL + other details -->
<!-- to display a small window in the center of the Screen -->
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->


function checksupport(){
	
	var f = document.forms.support;
	var mess = "";
	var check = true;
	if (f.cust.value==""){
		mess = "You must enter a Customer Account No or Email Address!\n";
		check = false;
	}
	if (f.product.value==""){
		mess = mess + "You must enter a Product you require support on!\n";
		check = false;
	}
	if (f.os.value==""){
		mess = mess + "You must enter the operating system your product is running on!\n";
		check = false;
	}
	if (f.memory.value==""){
		mess = mess + "You must enter the amount of memory your system has!\n";
		check = false;
	}
	if (f.query.value==""){
		mess = mess + "You must enter your support details!\n";
		check = false;
	}
	if (!check) {
		alert(mess);
		return false;		
	}	
	return true;
}