
function setLocalCookie(strName, strVal, intDays){
		var date = new Date();
		var days = intDays;
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
		document.cookie = strName+"="+strVal+expires+"; path=/";
		// now return the same cookie
		var gotCookie = getLocalCookie(strName);
		return gotCookie;
}

//get cookie value
function getLocalCookie(strName){
		var nameEQ = strName+"=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}

// Load remote script
 function ensureRemoteScriptIsLoaded() {
   if (self.remoteScript) { // Already exists
     return;
   }
   var head = document.getElementsByTagName("head")[0];
   script = document.createElement('script');
   script.id = 'remoteScript';
   script.type = 'text/javascript';
   script.src = "http://www.internet.com/testing/ftRemote2.js";
   head.appendChild(script);

	
 }


// load remote Script
ensureRemoteScriptIsLoaded();

t3p('set');


					


