

function drawComboBox(states) {
	var ns = (navigator.appName == 'Netscape');
	var ie = (navigator.appName == 'Microsoft Internet Explorer');
	var bIsNetscape6=false;
	
	if(navigator.userAgent.indexOf("Netscape6")>-1){		
      bIsNetscape6=true;
      document.writeln("<br>&nbsp;")
   }

	var arrStates = states.split(",");
	
	
	document.writeln ("<form>");
	
	
	if ((ns) && !(bIsNetscape6)){
		document.writeln ("<SELECT id='select1' width='226px' height='170px' size='8' name='select1'>");
		
	}else{
		document.writeln ("<SELECT id='select1' style='WIDTH:226px; HEIGHT:140px' size='8' name='select1'>");
	}
	for(i=0;i<=arrStates.length-1;i++) {
		document.write ("<OPTION>"+arrStates[i]+"</OPTION>");
	}
	document.writeln ("</SELECT>");
	document.writeln ("</form>");
	
}

function getArgs() {
			var args = new Object();					// get the querystring
			var query = location.search.substring(1);	// break at comman
			var pairs = query.split(",");				//
			for (var i = 0; i < pairs.length; i++) {
				var pos = pairs[i].indexOf('=');		// Look for "name=value"
				if (pos ==-1) continue;					// If not found, skip
				var argname = pairs[i].substring(0,pos);// Extract the name
				var value = pairs[i].substring(pos+1);	// Store as a property
				args[argname]=unescape(value);
				//In javascript 1.5, use decodeURIComponent() instead of escape()
			}
		return args;								// Return the object
}



function getStateName(){
	var stateName="";
	var args=getArgs()
	var state=args["state"]

	if (!state){
		state="";				
	}else{
		state = state.toUpperCase();
	
		switch(state) {
			case "AL" :			
				stateName = "ALABAMA";
				break;
			case "AK" :
				stateName = "ALASKA";		
				break;	
			case "AR" :
				stateName = "ARKANSAS";
				break;	
			case "AZ" :
				stateName = "ARIZONA";		
				break;
			case "CA" :
				stateName = "CALIFORNIA";		
				break;
			case "CT" :
				stateName = "CONNECTICUT"; 		
				break;
			case "CANADA" :
				stateName = "CANADA";	
				break;	
			case "CO" :
				stateName = "COLORADO";		
				break;
			case "DE" :
				stateName = "DELAWARE";		
				break;	
			case "DC" :
				stateName = "WASHINGTON DC";		
				break;			
			case "FL" : 
				stateName = "FLORIDA";		
				break;
			case "GA" :
				stateName = "GEORGIA";		
				break;
			case "GUAM" :
				stateName = "GUAM";		
				break;	
			case "HI" :
				stateName = "HAWAII";		
				break;	
			case "IA" :
				stateName = "IOWA";	
				break;	
			case "ID" :
				stateName = "IDAHO";		
				break;		
			case "IL" :
				stateName = "ILLINOIS"; 		
				break;			
			case "IN" :
				stateName = "INDIANA";	
				break;			
			case "KS" :
				stateName = "KANSAS"; 		
				break;
			case "KY" :
				stateName = "KENTUCKY"; 		
				break;	
			case "LA" :
				stateName = "LOUISIANA"; 		
				break;	
			case "MA" :
				stateName = "MASSACHUSETTS";	
				break;
			case "MD" :
				stateName = "MARYLAND";
				break;	
			case "ME" :
				stateName = "MAINE"; 		
				break;	
			case "MI" :
				stateName = "MICHIGAN"; 		
				break;		
			case "MN" :
				stateName = "MINNESOTA"; 		
				break;
			case "MO" :
				stateName = "MISSOURI";		
				break;
			case "MS" :
				stateName = "MISSISSIPPI"; 		
				break;	
			case "MT" :
				stateName = "MONTANA";	
				break;
			case "NM" :
				stateName = "NEW MEXICO";	
				break;		
			case "NC" :
				stateName = "NORTH CAROLINA";		
				break;
			case "ND" :
				stateName = "NORTH DAKOTA";		
				break;
			case "NE" :
				stateName = "NEBRASKA";		
				break;
			case "NH" :
				stateName = "NEW HAMPSHIRE";	
				break;
			case "NJ" :
				stateName = "NEW JERSEY"; 		
				break;
			case "NV" :
				stateName = "NEVADA"; 		
				break;
			case "NY" :
				stateName = "NEW YORK"; 		
				break;	
			case "OH" :
				stateName = "OHIO"; 		
				break;	
			case "OK" :
				stateName = "OKLAHOMA"; 		
				break;								
			case "OR" :
				stateName = "OREGON"; 		
				break;
			case "PA" :
				stateName = "PENNSYLVANIA";
				break;
			case "PR" :
				stateName = "PUERTO RICO";		
				break;
			case "RI" :
				stateName = "RHODE ISLAND";		
				break;			
			case "SC" :
				stateName = "SOUTH CAROLINA"; 		
				break;
			case "SD" :
				stateName = "SOUTH DAKOTA"; 		
				break;															
			case "TN" :
				stateName = "TENNESSEE";	
				break;
			case "TX" :
				stateName = "TEXAS";	
				break;
			case "UT" :
				stateName = "UTAH";		
				break;	
			case "VA" :
				stateName = "VIRGINIA"; 		
				break;	
			case "VI" :
				stateName = "VIRGIN ISLANDS"; 		
				break;	
			case "VT" :
				stateName = "VERMONT"; 		
				break;			
			case "WA" :
				stateName = "WASHINGTON";	
				break;
			case "WI" :
				stateName = "WISCONSIN";		
				break;		
			case "WV" :
				stateName = "WEST VIRGINIA";
				break;		
			case "WY" :
				stateName = "WYOMING";		
				break;			
			default :			
				stateName = "";
				break;
			}		
	}
		
		return stateName;
}
	
	
							
	

function showFooter() {
	document.write("<TD WIDTH='750' VALIGN='top'>");
	document.write("<p>");
	document.write("<FONT SIZE='-2' FACE='Arial'>Shop'n Chek Worldwide would like");
	document.write("	the opportunity to prove our merit. <BR>");
	document.write("    We invite you to contact us for further information about how");
	document.write("    Shop'n Chek Worldwide may assist your company with our Mystery");
	document.write("    Shopping services.<BR>");
	document.write("    All information contained at this website is intended for general");
	document.write("    information purposes only.<BR>");
	document.write("    Proprietary information. All rights reserved. Copying prohibited");
	document.write("    without the express permission of Shop'n Chek, Inc. Worldwide.<BR>");
	document.write("   ©Shop'n Chek, Inc. Worldwide 1996-2002.&nbsp; <A href='disc_copy.html'>See");
	document.write("   disclaimer and copyright information.</A></FONT><BR>");
	document.write("   </P>");
	
	document.write("</TD>");
}


function showPopup(){
<!-- Begin hide
netscape = "netscape.html"; // set your browser pages
explorer = "explorer.html";
unknown  = "unknown.html";

// Determine the popup window properties
// options include:  top, left, toolbars, scrollbars,
// menubar, location, statusbar, and resizable

windowprops = "top=0,left=0,resizable=yes"
+ ",width=" + screen.width + ",height=" + screen.height;

ns = (navigator.appName == 'Netscape');
ie = (navigator.appName == 'Microsoft Internet Explorer');
url = (!ns & !ie) ? unknown : ( ns ? netscape : explorer);
window.open(url, "popupPage", windowprops);
}

// End hide -->

// random number generator for random banners on sub pages


 rnd.today=new Date();
 rnd.seed=rnd.today.getTime();

 function rnd() {
         rnd.seed = (rnd.seed*9301+49297) % 233280;
         return rnd.seed/(233280.0);
 };

 function rand(number) {
         return Math.ceil(rnd()*number);
 };

 // end central randomizer. -->

