// pop-up window scriptsfunction getPopup(whichPop)	{	var popupURL = "/customization/popup_"+whichPop+".php";	var popup = window.open(popupURL,whichPop,'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=640,height=490,screenX=50,screenY=50,left=50,top=50');   if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function getPopupLG(whichPop)	{	var popupURL = "/customization/popup_"+whichPop+".php";	var popup = window.open(popupURL,whichPop,'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=760,height=610,screenX=50,screenY=50,left=50,top=50');   if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function getGallery(whichGallery)	{	var popupURL = "/screenprinting/galleries/index_"+whichGallery+".php";	var popup = window.open(popupURL,whichGallery,'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=550,screenX=50,screenY=10,left=50,top=10');   if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function getProductDetail(whichProduct)	{	var popupURL = "/images/products/"+whichProduct+"_extra.jpg";	var popup = window.open(popupURL,whichProduct,'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=645,height=490,screenX=50,screenY=50,left=50,top=50');   if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function launchQuote()	{	var whichQuote	= "";	var popupURL = "https://www.greek101.com/screenprinting/quote.php";	var popup = window.open(popupURL,whichQuote,'toolbar=0,location=0,directories=0,titlebar=0,status=1,menubar=0,scrollbars=1,resizable=1,width=800,height=600,screenX=50,screenY=50,left=50,top=50');      if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function getLargePhoto(product) {		var popupURL = "/gifts/images/"+product;		var popup = window.open(popupURL,"Detail",'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=0,resizable=0,width=460,height=620,screenX=0,screenY=0,left=0,top=0');		if( navigator.appName.substring(0,8) == "Netscape" ) {            popup.location = popupURL;            popup.opener = self;        }	}function emailFriend()	{	var popupURL = "https://www.greek101.com/customer/emailfriend.html";	var popup = window.open(popupURL,"EmailFriend",'toolbar=0,location=0,directories=0,titlebar=0,status=1,menubar=0,scrollbars=1,resizable=1,width=400,height=300,screenX=50,screenY=50,left=50,top=50');      if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function isEmail(string) {if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)	return true;else	return false;}	function isReady(form) {if (isEmail(form.email.value) == false) {	alert("Please enter a valid email address.");	form.email.focus();	return false;}	return true;}function phonePopup()	{	var popupURL = "https://www.greek101.com/phonesdown.html";	var popup = window.open(popupURL,"EmailFriend",'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=300,screenX=50,screenY=50,left=50,top=50');      if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function cfpopunder()	{	var popupURL = "https://www.greek101.com/";	var popup = window.open(popupURL,"",'toolbar=1,location=1,directories=1,titlebar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600,screenX=0,screenY=0,left=0,top=0').blur();;      if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }	window.focus();}function cfredirect()	{	location.replace("http://www.campusfundraiser.com");	}function cfpageleave()	{	var popupURL = "https://www.greek101.com/customer/earnmoney.php";	var popup = window.open(popupURL,"",'toolbar=1,location=1,directories=1,titlebar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600,screenX=0,screenY=0,left=0,top=0');      if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}// x-mas holiday_shipping.htmlfunction getShiptime()	{			var popupURL = "/holiday09shipping.html";			var popup = window.open(popupURL,'shipping','toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=0,resizable=0,width=200,height=250,screenX=50,screenY=50,left=50,top=50');   			if(navigator.appName.substring(0,8) == "Netscape" ) {	            popup.location = popupURL;    	        popup.opener = self;    	    }		}		function getGallery2(whichGallery) {	location.replace("https://www.greek101.com/screenprinting/designs.php");	var popupURL = "/screenprinting/galleries/index_"+whichGallery+".php";	var popup = window.open(popupURL,whichGallery,'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=550,screenX=50,screenY=10,left=50,top=10');   if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}function getPopup2(whichPop)	{	location.replace("https://www.greek101.com/shop/");	var popupURL = "/customization/popup_"+whichPop+".php";	var popup = window.open(popupURL,whichPop,'toolbar=0,location=0,directories=0,titlebar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=640,height=490,screenX=50,screenY=50,left=50,top=50');   if( navigator.appName.substring(0,8) == "Netscape" )        {            popup.location = popupURL;            popup.opener = self;        }}// function to retrieve a cookiefunction getUserCookie(c_name) {	if (document.cookie.length>0) {		c_start=document.cookie.indexOf(c_name + "=");		if (c_start!=-1) {			c_start=c_start + c_name.length+1;			c_end=document.cookie.indexOf(";",c_start);			if (c_end==-1) c_end=document.cookie.length;				return unescape(document.cookie.substring(c_start,c_end));			} 		}	return "";}// function to set a cookiefunction setUserCookie(c_name,value,expiredays) {	var exdate=new Date();	exdate.setDate(exdate.getDate()+expiredays);	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString()+";path=/");}
