function confirmSubmit()
{
var agree=confirm("Please be informed that the Activation Code can only be used\nonce. After it's submitted it can't be reversed. So please\nmake sure all informations are true and valid before you\nproceed with your registration.");
if (agree)
	return true ;
else
	return false ;
}

function confirmSubmitM()
{
var agree=confirm("Perhatian! Kod Pendaftaran hanya boleh digunakan sekali sahaja.\nSetelah ia dihantar ia tidak boleh digunakan lagi. Sila pastikan\nsegala maklumat yang anda isikan adalah betul sebelum anda\nmenghantarkan borang ini.");
if (agree)
	return true ;
else
	return false ;
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function checkCookie()
{
username=getCookie('TrafficPsyche');
if (username!=null && username!="")
  {
  }
  else 
  {
  //timedMsg();
  setCookie('TrafficPsyche','guest',1);
  //var googlewin=dhtmlwindow.open('googlebox', 'iframe', 'popdownload.cgi', 'Download Your FREE Copy', 'width=524px,height=490px,scrolling=0,center=1,resize=0');
  }
}

function timedMsg()
{
//var t=setTimeout("alert('We are releasing a new version of Traffic Psyche soon. This upgrade comes with NEW higher price. So Stop Paying More. Buy Now! Join hundreds of other satisfied users and Get FREE Lifetime Upgrade. Thank you..')",90000);
var t=setTimeout("alert('TODAYS OFFER! Get your FREE Copy of Traffic Psyche Now!. Download your copy from the link at the bottom of the page. Thank you')",15000);
}
