		function setCookie(name, value, expires) {
 			var curCookie = name + "=" + escape(value) +	"; expires=" + expires.toGMTString() + "; path=/";
  			document.cookie = curCookie;
		}

  		function getCookie(name) { // use: getCookie("name");
  			bikky = document.cookie;
  		  var index = bikky.indexOf(name + "=");
  		  if (index == -1) return null;
  		  index = bikky.indexOf("=", index) + 1;
  		  var endstr = bikky.indexOf(";", index);
  		  if (endstr == -1) endstr = bikky.length;
  		  return unescape(bikky.substring(index, endstr));
  		}
	
	
   document.write('<link REL="SHORTCUT ICON" href="http://www.greenteadesign.com/favicon.ico">');
   
  
  
  

	function writeCookie_screen() 
	{
	 var today = new Date();
	 var the_date = new Date("December 31, 2023");
	 var the_cookie_date = the_date.toGMTString();
	 var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height;
	 var the_cookie = the_cookie + ";expires=" + the_cookie_date + "; path=/";
	 document.cookie=the_cookie
	}

	writeCookie_screen();
	
	function popitup_contact(url)
	{	}
	
	function popitup_contactcallback(url)
	{
		newwindow=window.open(url,'ccname','height=517,width=646,scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
		return false;
	}
	
	function popitup_press(url)
	{
		newwindow=window.open(url,'pressname','height=452,width=393,scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
		return false;
	}
	
	function popitup_interactive(url)
				{
					newwindow=window.open(url,'interactname','height=610,width=780,scrollbars=no,resizable=yes');
					if (window.focus) {newwindow.focus()}
					return false;
				}			
				
	function popitup(url)
	{
		newwindow=window.open(url,'newname','height=497,width=400,scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
		return false;
	}
	
		function popitup_apprentice(url)
	{
		newwindow=window.open(url,'apprname','height=497,width=400,scrollbars=no,resizable=yes');
		if (window.focus) {newwindow.focus()}
		return false;
	}
	

	function popitup_order(url)
			{
				newwindow=window.open(url,'ordername','height=457,width=649,scrollbars=no,resizable=yes');
				if (window.focus) {newwindow.focus()}
				return false;
			}

			function popitup_showroom(url)
				{
					newwindow=window.open(url,'showroomname','height=427,width=681,scrollbars=no,resizable=yes');
					if (window.focus) {newwindow.focus()}
					return false;
				}
				
			function popitup_about(url)
				{
					newwindow=window.open(url,'aboutus','height=457,width=765,scrollbars=no,resizable=yes');
					if (window.focus) {newwindow.focus()}
					return false;
				}
			
		function setCookieZ(name, value) {
 			var curCookie = name + "=" + escape(value) +	"; path=/";
  			document.cookie = curCookie;
		}	
		
		function check_email(e) {
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	
	for(i=0; i < e.length ;i++){
	if(ok.indexOf(e.charAt(i))<0){ 
	return (false);
	}	
	} 
	if (document.images) {
	re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
	re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
	if (!e.match(re) && e.match(re_two)) {
	return (-1);		
	} 
	}
	}

	function check_form(f) {
	if(!check_email(f.email.value)){
	alert("Your email address is invalid.  Please try again.");
	f.email.focus(); 
	if(document.all || document.getElementByID){
	f.email.style.background = "white";
	}
	return false;
	}
	}