document.cookie="QuickCert";
adwindow= "adwindow.htm";
attribs="height=405,width=306,resizable=no,history=no,toolbar=no,location=no,menubar=no,scrollbars=no,statusbar=no";
var toalert=true
var results=document.cookie.split(";")
        for (n=0;n<=results.length-1;n++){
                if (results[n].substring(1,12)=='alerted=yes'){
                toalert=false
                break
                }
        }
// the main function that pops up the new window
		
function askMe(){
	if (document.cookie!=''&&toalert){
	window.open(adwindow,"Special",attribs);
	document.cookie="alerted=yes"
	}
}
function clearCookie(){
	toalert=true
	document.cookie=''
	document.cookie=("alerted=no")
}

