
var popupChildWindow;
function pageLoad()
{
var autocheckPopupEndDate=new Date();
autocheckPopupEndDate.setFullYear(2008,2,9);
var today=new Date();
if(today<autocheckPopupEndDate)
{
if(readCookie("autocheckAd4PopupDisabled")==null)
{
if(readCookie("autocheckPopupShown")==null)
{
openPopupChildWithSetPosition('popup/autocheck_adpopup.html',630,477,50,50);
writePersistentCookie("autocheckPopupShown","shown","hours","15");
}
}
}
}
function openPopupChildWithSetPosition(pageURL,pageWidth,pageHeight,pageLeft,pageTop)
{
if(!pageWidth)pageWidth = "650";
if(!pageHeight)pageHeight = "350";
if(!pageLeft)pageLeft = "0";
if(!pageTop)pageTop = "0";
if(popupChildWindow&&!popupChildWindow.closed)
{
popupChildWindow.location.href = GetServerPath("NonSecureHTTP","motor/"+pageURL);
popupChildWindow.focus();
}
else
{
var popUpFile = GetServerPath("NonSecureHTTP","motor/"+pageURL);
popupChildWindow = window.open( popUpFile,"autoCheckAdPopup","menubar=no,toolbar=no,resizable=yes,scrollbars=no,status=no,width="+pageWidth+",height="+pageHeight+",left="+pageLeft+",top="+pageTop);
}
}
function linkBackToParent(targetAnchor)
{
window.opener.document.location.href = GetServerPath("NonSecureHTTP","motor/")+"cdc_frameset.html?mnuprodservices.html?"+targetAnchor;
}
function closeAdPopup()
{
if(popupChildWindow&&!popupChildWindow.closed)
{
popupChildWindow.close();
}
}


