var doAlerts=true;
			function changeSheets(whichSheet){
			  whichSheet=whichSheet-1;
			  if(document.styleSheets){
			    var c = document.styleSheets.length;
			    for(var i=0;i<c;i++){
			      if(i!=whichSheet){
			        document.styleSheets[i].disabled=true;
			      }else{
			        document.styleSheets[i].disabled=false;
			      }
			    }
			  }
			}
	
	function printPage()	{
			if (window.print) {
 			window.print();
			} else { alert("Mac users: press Command-P, or choose 'Print' from the file menu to print this page.");
		}}
   
		function mailpage()	{
			mail_str = "mailto:?subject=Check out this Website";
			mail_str += "&body=" + location.href;
			location.href = mail_str;
		}
	
	
	var getURL = top.location.search.substring(1);
	if (getURL != "")
	{
	window.location.href = getURL[0];
	}
	else {
	// do nothing
	}
	
		function pop_win(url){
			window.open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width=595,height=520");
		}
		
		function isEmailAddr(email)
		{
		  var result = false;
		  var theStr = new String(email);
		  var index = theStr.indexOf("@");
		  if (index > 0)
		  {
		    var pindex = theStr.indexOf(".",index);
		    if ((pindex > index+1) && (theStr.length > pindex+1))
		        result = true;
		  }
		  return result;
		}
		
		
				function isEmailAddr(email) {
					var result = false;
					var theStr = new String(email);
					var index = theStr.indexOf("@");
					if (index > 0)
					  	{
					    	var pindex = theStr.indexOf(".",index);
					    	if ((pindex > index+1) && (theStr.length > pindex+1))
					        	result = true;
					  	}
					return result;
				}
	
				function validRequired(formField,fieldLabel) {
					var result = true;
					if (formField.value == "")
						{
							alert('Please enter a value for the "' + fieldLabel +'" field.');
							formField.focus();
							result = false;
						}
						return result;
						}
											
				function validEmail(formField,fieldLabel,required) {
					var result = true;
					if (required && !validRequired(formField,fieldLabel))
						result = false;
												
				    if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) )
				       	{
				       		alert("Please enter a complete email address in the form: yourname@yourdomain.com");
							formField.focus();
							result = false;
						}
						return result;
						}
									
				function CheckForm(theForm){									       
					if (!validRequired(theForm.fname,"Name")){ return false; }
					if (!validRequired(theForm.lname,"Name")){ return false; }
					if (!validEmail(theForm.email,"Email Address",true)){ return false; }
					}												
					
		
		
		function basic() {
		basicText.style.color ='#003366';
		customText[0].style.color ='gray';
		customText[1].style.color ='gray';
		customText[2].style.color ='gray';
		customText[3].style.color ='gray';
		customText[4].style.color ='gray';
		customText[5].style.color ='gray';
		customText[6].style.color ='gray';
		customText[7].style.color ='gray';
		customText[8].style.color ='gray';
		customText[9].style.color ='gray';
		customText[10].style.color ='gray';
		document.mainform.temp.disabled=false;
		document.mainform.temp.focus();
		document.mainform.type[0].disabled=true;
		document.mainform.type[1].disabled=true;
		document.mainform.type[2].disabled=true;
		document.mainform.domain.disabled=true;
		document.mainform.brief.disabled=true;
		document.mainform.target.disabled=true;
		document.mainform.numpages.disabled=true;
		document.mainform.logo[0].disabled=true;
		document.mainform.logo[1].disabled=true;
		document.mainform.graphic[0].disabled=true;
		document.mainform.graphic[1].disabled=true;
		document.mainform.sample.disabled=true;
		document.mainform.general.disabled=true;
		}
				
		function custom() {
		customText[0].style.color ='#003366';
		customText[1].style.color ='#003366';
		customText[2].style.color ='#003366';
		customText[3].style.color ='#003366';
		customText[4].style.color ='#003366';
		customText[5].style.color ='#003366';
		customText[6].style.color ='#003366';
		customText[7].style.color ='#003366';
		customText[8].style.color ='#003366';
		customText[9].style.color ='#003366';
		customText[10].style.color ='#003366';
		basicText.style.color ='gray';
		document.mainform.temp.disabled=true;
		document.mainform.temp.value='';
		document.mainform.type[0].disabled=false;
		document.mainform.type[1].disabled=false;
		document.mainform.type[2].disabled=false;
		document.mainform.domain.disabled=false;
		document.mainform.brief.disabled=false;
		document.mainform.target.disabled=false;
		document.mainform.numpages.disabled=false;
		document.mainform.logo[0].disabled=false;
		document.mainform.logo[1].disabled=false;
		document.mainform.graphic[0].disabled=false;
		document.mainform.graphic[1].disabled=false;
		document.mainform.sample.disabled=false;
		document.mainform.general.disabled=false;
		}