function PopUp(url,name,width,height)
{
  var winX = 0;
  var winY = 0;
  var w = width;
  var h = height;
  // only set new values if 4.0 browser, this centers the pop up window
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - w)*.5;
    winY = (screen.availHeight - h)*.5;
}
  popupWin = window.open(url, name, 'scrollbars,resizable,width=' + w + ',height=' + h + ',left='  + winX + ',top=' + winY);
}

function ex_delete(url)
{
 if(confirm("Are you sure you want to DELETE this Record?")) {
    document.location.href=url
}
  return false;
}

function printWindow()
{
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function LoadFuncs()
{ 
	top.window.opener.location.reload() 
	top.self.close() 
}

function goPage(url)
{
    if (document.images)
        location.replace(url);
    else
        location.href = url;
}

//configure the two variables below to match yoursite's own info
var bookmarkurl="http://www.CarProfit.com"
var bookmarktitle="CarProfit.com Wholesale Systems"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


