
var frequencyCap = 1; //hours 
 
function setCookie(cookieName,cookieValue, expirehours) {
 
  if (frequencyCap > 0){
 
    var today = new Date();
 
    var expire = new Date();
 
     expire.setTime(today.getTime() + 1600000 * frequencyCap);
 
 
     document.cookie = cookieName+"="+escape(cookieValue)
 
                 + ";expires="+expire.toGMTString() + "; path=/";
 
  }else{
 
     document.cookie = cookieName+"="+escape(cookieValue) + "; path=/";
 
 
  }
 

 
}
 
function ReadCookie(cookieName) {
 
var theCookie=""+document.cookie;
 
var ind=theCookie.indexOf(cookieName);
 
if (ind==-1 || cookieName=="") return ""; 
 
 
var ind1=theCookie.indexOf(';',ind);
 
if (ind1==-1) ind1=theCookie.length; 
 
return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
 
}
 
if (ReadCookie('PayPopupAds31twilightturk') != 'yes')  
 
 
{ 
 
setCookie('PayPopupAds31twilightturk','yes', frequencyCap); 
 
document.write('<SCRI'+'PT LANGUAGE="JavaScript1.1" '); 
 
document.write(' SRC="http://www.portal-turk.com/js/twilightturk1.js">');
 
 
document.write('</SCR'+'IPT>'); 
 
} 
 


