<!--
		function rollOn (imgname,idno) {
			var undefined;
			var myname = imgname + idno;
			idno == undefined ? document.getElementById(imgname).src="images/"+ imgname + "_on.gif" : document.getElementById(myname).src="images/"+ imgname + "_on.gif";
		}
		function rollOut (imgname,idno) {
			var undefined;
			var myname = imgname + idno;
			idno == undefined ? document.getElementById(imgname).src="images/"+ imgname + "_off.gif" : document.getElementById(myname).src="images/"+ imgname + "_off.gif";
		}
		
		function openWindow(url, name) {
		var winloc = url; 
		var w = 480;
		var h = 420;
		var winname = name;
		var winl =(screen.width - w) / 2;
		var wint =(screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0,resizable=0,location=0,toolbar=0,status=0,fullscreen=o,titlebar=0';
		win = window.open(winloc, winname, winprops);
		win.focus();
		}
		
		var preimages = new Array();
		function preload() {
			for (i=0; preload.arguments.length; i++){
				preimages[i] = new Image();
				preimages[i].src = preload.arguments[i];
			}
		}
		onLoad="preload('images/products_on.gif','images/news_on.gif','images/industries_on.gif','images/company_on.gif','images/contact_on.gif','images/partners_on.gif','images/login_on.gif')";
		function epress(){
			if(window.event.keyCode == 13){
				//alert(window.event.keyCode);
				loginFun();
			}
		}
		function clearBox(bid){
			document.getElementById(bid).value = "";
		}
		function loginFun(){
			if(logid.value != "Client ID" && logid.value != ""){
				var winloc = "http://www.computerone.biz/invoice?un=" + logid.value + ";pw=" + logpass.value;
				isReady();
				window.location = winloc;
			}
			else{
				alert("Please enter a valid Client ID.");
			}
		}
		function validate(){
			msg = " is a required field. Please enter it now."
			msg2 = " is a required field. Please select it now."
			if (myForm.FirstName.value == ""){
				myForm.FirstName.focus()
				alert(myForm.FirstName.title + msg)	
				return false;	
			} 
			if (myForm.LastName.value == ""){
				myForm.LastName.focus()
				alert(myForm.LastName.title + msg)	
				return false;	
			} 
			if (myForm.Address1.value == ""){
				myForm.Address1.focus()
				alert(myForm.Address1.title + msg)	
				return false;	
			} 
			if (myForm.City.value == ""){
				myForm.City.focus()
				alert(myForm.City.title + msg)	
				return false;	
			} 
				if (myForm.Country.value == ""){
				myForm.Country.focus()
				alert(myForm.Country.title + msg)	
				return false;	
			}
			if (myForm.State.value == ""){
				myForm.State.focus()
				alert(myForm.State.title + msg)	
				return false;	
			} 
			if (myForm.ZipCode.value == ""){
				myForm.ZipCode.focus()
				alert(myForm.ZipCode.title + msg)	
				return false;	
			}
			if (myForm.Phone.value == ""){
				myForm.Phone.focus()
				alert(myForm.Phone.title + msg)	
				return false;	
			}
			if (myForm.Email.value == ""){
				myForm.Email.focus()
				alert(myForm.Email.title + msg)	
				return false;	
			} 
			x=document.myForm
			at=x.Email.value.indexOf("@")
			if (at == -1)
			{
			myForm.Email.focus()
			alert("Not a valid e-mail.")
			return false
			}
		
		 return true; 
		}

		//*** Validates the form upon submission ***//
	  function isReady() {
	
		//*** Set the cookie ***//
		setCookie('sheptime', logid.value, 6144, '/');
	
		return true;
	  }
	
	  //*** Cookies ***//
	  function setCookie(name, daValue, hours, path) {
	  	var ctime = new Date();
	  	ctime.setTime(ctime.getTime() + (parseInt(hours)*3600000));
	  	document.cookie = name + '=' + escape(daValue) + ((hours)? ';expires=' + ctime.toGMTString():'') + ((path)?';path=' + path:'');
		 	alert(document.cookie.indexOf(daValue));
	  }
	  
	  function deliverCookie() {
	  	
		var crumb = getCookieValue('sheptime');
			if (crumb != false) {
			  crumb = replace(crumb,'%40','@');
			  logid.value = crumb;
			}
	  }
	
	  function getCookieValue(name) {
		var firstChar,lastChar;
	  	var theBigCookie = document.cookie;
		firstChar = theBigCookie.indexOf(name);
			if(firstChar != -1) {
				firstChar += name.length + 1;
				lastChar = theBigCookie.indexOf(';', firstChar);
				if(lastChar == -1) {
					lastChar = theBigCookie.length;
				}
				return theBigCookie.substring(firstChar, lastChar);
			} else {
				return false;
			}
	  }
	  
	  // Replaces text with by in string
	  function replace(string,text,by) {
	    var strLength = string.length, txtLength = text.length;
	    if ((strLength == 0) || (txtLength == 0)) return string;
	
	    var i = string.indexOf(text);
	    if ((!i) && (text != string.substring(0,txtLength))) return string;
	    if (i == -1) return string;
	
	    var newstr = string.substring(0,i) + by;
	
	    if (i+txtLength < strLength)
	        newstr += replace(string.substring(i+txtLength,strLength),text,by);
	
	    return newstr;
	  }

		//-->