
    var xmlHttp //variable
	//send the content
	function DynamicSubmit(URLValue,ResultID, asHelper)
	{
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  { alert ("Please update your browser");
		  return;
		  }
		var url="/ispy/includes/popup.asp"+"?"+URLValue;
		//alert(url);
		xmlHttp.onreadystatechange=function(){
         stateChanged(ResultID,asHelper)
		 };
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);

		var q = parseQuery( URLValue.split('?').pop() ),
            ageScreenerConfig = {};
		if ( q.page == 'videogames' ) {
			ageScreenerConfig.under13 = "Sorry, you can't buy this product directly from our site for kids. If you want to get this product online, ask your parent to help you purchase it.";
		}
		else {
			ageScreenerConfig.under13 = '';
		}
	}

	//if it is complete, send the data to the ID
	function stateChanged(ResultID, asHelper)
	{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
			//if (ResultID=="dailycheck")
			document.getElementById(ResultID).innerHTML = xmlHttp.responseText;
			if ( typeof asHelper != 'undefined' && typeof asHelper == 'function' ) asHelper();
			if (schl.ispy.ie6) {
				jQuery('#gContent .btns img, #gContent .btn img, #gContent .awds img, #gContent .tech a').ifixpng();
				var h = jQuery('.cvr').height();
				if ( h > 0 ) { jQuery('.cvr').attr('height',h); }
			}
		//	}
	 	}
	}
	function DynamicEmail(ParVal)
	{
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  { alert ("Please update your browser");
		  return;
		  }
		var url="/pushupandcreate/processemail.asp?"+ParVal;
		//alert(url)

		xmlHttp.onreadystatechange=function(){
		 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
				//document.getElementById("emailform").style.display = "none";
				//document.getElementById("gContent").style.display = "block";
		 	}
		 };

		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

	//Creat XML http Object
	function GetXmlHttpObject()
	{	var xmlHttp=null;
		try
		  {xmlHttp=new XMLHttpRequest();}
		catch (e)
		  { try
			{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
		  catch (e)
			{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
		  }
		return xmlHttp;
	}

	function parseQuery ( query ) {
	   var Params = new Object ();
	   if ( ! query ) return Params; // return empty object
	   var Pairs = query.split(/[;&]/);
	   for ( var i = 0; i < Pairs.length; i++ ) {
	      var KeyVal = Pairs[i].split('=');
	      if ( ! KeyVal || KeyVal.length != 2 ) continue;
	      var key = unescape( KeyVal[0] );
	      var val = unescape( KeyVal[1] );
	      val = val.replace(/\+/g, ' ');
	      Params[key] = val;
	   }
	   return Params;
	}

