function writeDateAndTime() {
	var now = new Date();
	var allDays = new Array(7);
	var allMonths = new Array(12);
	var dayString = "Sunday:Monday:Tuesday:Wednesday:Thursday:Friday:Saturday:Sunday";
	allDays = dayString.split(":");
	var monthString = "January:February:March:April:May:June:July:August:September:October:November:December";
	allMonths = monthString.split(":");
	var day = allDays[now.getDay()];
	var month = allMonths[now.getMonth()];
	var date = now.getDate();
	document.write(day,", ",month," ",now.getDate(),", ",now.getFullYear());
}
// browser detection - load css file
function loadCSSFile() {
  	/* this script determines the user browser and loads an appropriate external cascading style sheet.
	   If the browser is an Internet Explorer browser then an IE compatible external css file is loaded.
	   If the browser is a Netscape browser then a Netscape compatible external css file is loaded.
	   If the browser is an Opera browser then an an Internet Explorer compatible external css file is loaded.
	   If the browser is anything else no css file is loaded.
	   You can add more browser types by adding another case and a related css file. Based on an analysis 
	   of website traffic most surfers use recent browser versions. You can add specific versioning if you want
	   but the traffic that will use it will be negligible.
	   Richard Creech info@dreamriver.com http://www.dreamriver.com
	*/
	var cssFileName = "";
	var browser = navigator.appName;
	switch(browser) {
		case "Netscape":
			cssFileName = "style_netscape.css";
			break;
		default:
			cssFileName = "style_ie.css";

	}
	//document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"newclassif/" + cssFileName + "\">");
}
function openUpdateWindow(theForm){
	theForm.target = "updateWindow";
	updateWindow = window.open('','updateWindow', 'toolbar=0,status=0,menubar=0,location=0,scrollbars=1,alwaysRaised=1,resizable=1,screenX=30,screenY=30,width=550,height=500,top=30,left=30');
	updateWindow.focus();
}
function isValidNamePassword(theName,thePassword){
	if(theName==null || theName==""){
		alert("User ID cannot be empty");
		return false;
	}
	if(theName.length < 4){
		alert("User ID should be more than four characters long");
		return false;
	}
	if(thePassword==null || thePassword==""){
		alert("Password cannot be empty");
		return false;
	}
	if(theName.length < 4){
		alert("Password should be more than four characters long");
		return false;
	}
	return true;
}
function bookmarkSite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}



