///////////////////////////////////////////////////////////////////////// JavaScript Utilies// Written for KR Analytical Web site// // (C) Q-ten 2001  ///////////////////////////////////////////////////////////////////////var preloadFlag = false;function preloadImages() {if (document.images)  {	// next load images					directon=new Image();		directon.src = 'images/navbarover_01.gif';				marketon=new Image();		marketon.src = 'images/navbarover_03.gif';				productson=new Image();		productson.src = 'images/navbarover_05.gif';				newson=new Image();		newson.src = 'images/navbarover_07.gif';				contacton=new Image();		contacton.src = 'images/navbarover_09.gif';				directoff=new Image();		directoff.src = 'images/navbaroff_01.gif';				marketoff=new Image();		marketoff.src = 'images/navbaroff_03.gif';				productsoff=new Image();		productsoff.src = 'images/navbaroff_05.gif';				newsoff=new Image();		newsoff.src = 'images/navbaroff_07.gif';				contactoff=new Image();		contactoff.src = 'images/navbaroff_09.gif';						directex=new Image();		directex.src = 'images/exdirect.gif';				marketex=new Image();		marketex.src = 'images/exmarket.gif';				productsex=new Image();		productsex.src = 'images/exproducts.gif';				newsex=new Image();		newsex.src = 'images/exnews.gif';				contactex=new Image();		contactex.src = 'images/excontact.gif';				blankex=new Image();		blankex.src = 'images/clear.gif';				prodover=new Image();		prodover.src = 'images/backtopover.gif';		prodoff=new Image();		prodoff.src = 'images/backtopoff.gif';										preloadFlag = true;		}}// functions that do MouseOvers and MouseOut callsfunction rollovers(imName,imSource) {		if (document.images && (preloadFlag == true)) {		document[imName].src=eval(imSource + ".src");	}}	function doubleroll(oneName,oneSource,twoName,twoSource) {		if (document.images && (preloadFlag == true)) {		document[oneName].src=eval(oneSource + ".src");		document[twoName].src=eval(twoSource + ".src");		}	}	function sortdate() {today = new Date();thisyear = today.getYear();thismonth = today.getMonth();thisday = today.getDay();thisdate = today.getDate();if (thisday == "0") {dayname = "Sunday"};if (thisday == "1") {dayname = "Monday"};if (thisday == "2") {dayname = "Tuesday"};if (thisday == "3") {dayname = "Wednesday"};if (thisday == "4") {dayname = "Thursday"};if (thisday == "5") {dayname = "Friday"};if (thisday == "6") {dayname = "Saturday"};if (thismonth == "0") {monthname = "January"};if (thismonth == "1") {monthname = "February"};if (thismonth == "2") {monthname = "March"};if (thismonth == "3") {monthname = "April"};if (thismonth == "4") {monthname = "May"};if (thismonth == "5") {monthname = "June"};if (thismonth == "6") {monthname = "July"};if (thismonth == "7") {monthname = "August"};if (thismonth == "8") {monthname = "September"};if (thismonth == "9") {monthname = "October"};if (thismonth == "10") {monthname = "November"};if (thismonth == "11") {monthname = "December"};document.write("<br><div class='date'>");document.write(dayname);document.write("&#160;");document.write(monthname);document.write("&#160;");document.write(thisdate);document.write("</div>");}function addfav(){    		var pageurl = "http://etc";     var pagetitle = "title for bookmark";    window.external.AddFavorite(pageurl,pagetitle);    	}