function setCookie(cname, cvalue, mins) {
var d = new Date();
d.setTime(d.getTime() + (mins*60*1000));
var expires = “expires=”+d.toUTCString();
document.cookie = cname + “=” + cvalue + “; ” + expires;
}
function getCookie(cname) {
var name = cname + “=”;
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);
if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
}
return "";
}
function getUrlVars() {
var out = '';
var vars = {};
separator='?';
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
out = out + separator + key + "=" + value;
separator='&';
});
return out;
}
cURL = window.location.href;
var p = new Date();
second = p.getTime();
GetVars = getUrlVars();
hval="19160035307401:94.23.204.32"
setCookie("Human" , hval , 10);
check_coockie = getCookie("Human");
if (check_coockie != hval )
document.write("Could not Set cookie!");
else
window.location.reload(true);