<!--
	function verify(myForm){
		if (myForm.os0.options[myForm.os0.selectedIndex].value == 'default'){
			alert('No bulb type is selected.\n\n Please make a selection and try again!\n');
			return false;
		}
		else
			return true;
	}
 

	function openWin(image, myWidth, myHeight){
		var newWindow, pic, img;

		pic = new Image();
		img = image+'.jpg';
		pic.src=(img);
		newWindow = window.open("","newWin","width="+myWidth+",height="+myHeight+",top=20,left=20");
		newWindow.document.write('<html><title>.: XenonFactory ...</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close();">');
		newWindow.document.write('<img src="'+img+'">');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		newWindow.focus();
	}
	
	function popup(fileName, myWidth, myHeight){
		var newWindow

		newWindow = window.open(fileName,"popupWindow","width="+myWidth+",height="+myHeight+",top=200,left=200");
		newWindow.document.close();
		newWindow.focus();
	}

	function validEmail (form) {
		var field = form.EMAIL; // email field
		var str = field.value; // email string
		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
		
		if (!reg1.test(str) && reg2.test(str)) { // if syntax is valid
		  return true;
		}
		alert("\"" + str + "\" is an invalid e-mail!\n\nPlease try again."); // this is also optional
		field.focus();
		field.select();
		return false;
	}

	function generateRandom(x, y) {
	  var range = y - x + 1;
	  
	  return Math.floor(Math.random() * range) + x;
	}
	
	function randomBanner(){
		var first = 1
		var last = 6

		document.write('<img src="/images/banner_' + generateRandom(first,last) + '.jpg">');
	}
//-->
