
<!--******************************************************************
<!--CONFIRM DELETE OF COMPANY
<!--******************************************************************
function ConfirmDeleteCompany(CompanyID, CompanyType) {
  if (confirm("Are you sure you want to delete this company?")) {
    document.location = "modify-deleteCompany.asp?ID=" + CompanyID + "&CompanyType=" + CompanyType;
  }
}

function ConfirmDeleteCoupon(CouponID) {
  if (confirm("Are you sure you want to delete this coupon?")) {
    document.location = "coupon-delete.asp?CouponID=" + CouponID;
  }
}

function ConfirmDeleteMenu(MenuID) {
  if (confirm("Are you sure you want to delete this menu?")) {
    document.location = "menu-delete.asp?MenuID=" + MenuID;
  }
}

function JoinList(){
window.open('mailinglist.asp','maillist','width=400,height=165,top=200,left=200, resize=no,scrollbars=no');
}


<!--******************************************************************
<!--UPDATE PHOTO JAVASCRIPT POP UP WINDOW
<!--******************************************************************
function updatePhoto(page)
{
window.open(page,"sp","width=400,height=417,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no");
}

<!--******************************************************************
<!--GET THE FILE NAME
<!--******************************************************************
function GetFileName(fieldname) {
    if (fieldname.indexOf('/') > -1)
        answer = fieldname.substring(fieldname.lastIndexOf('/')+1,fieldname.length);
    else
        answer = fieldname.substring(fieldname.lastIndexOf('\\')+1,fieldname.length);
    return answer;
}


<!--******************************************************************
<!--POP UP MAP WITH COMPANIES IN WHITE ROCK
<!--******************************************************************
function ViewMap(CompanyType,CompanySubType)
{
 var thenum = window.screen.width;
 var mapwidth
 var mapheight
 
 
 if (thenum < 2400)
 {
  mapwidth = 1100
  mapheight = 900
 }
 
 if (thenum < 1200)
 {
  mapwidth = 1000
  mapheight = 800
 }
 
 if (thenum < 850)
 {
  mapwidth = 750
  mapheight = 500
 }
 
 page = "http://www.whiterockbia.com/map.asp?CompanyType="+CompanyType+"&CompanySubType="+CompanySubType+"&h="+mapheight+"&w="+mapwidth
 window.open(page,"whiterockmap","width="+mapwidth+",height="+mapheight+",toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no");

}



function SingleMap(ID)
{
 var thenum = window.screen.width;
 var mapwidth
 var mapheight
 
 
 if (thenum < 2400)
 {
  mapwidth = 1100
  mapheight = 900
 }
 
 if (thenum < 1200)
 {
  mapwidth = 1000
  mapheight = 800
 }
 
 if (thenum < 850)
 {
  mapwidth = 750
  mapheight = 500
 }
 
 page = "http://www.whiterockbia.com/singlemap.asp?ID="+ID+"&h="+mapheight+"&w="+mapwidth
 window.open(page,"whiterocksinglemap","width="+mapwidth+",height="+mapheight+",toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=no");

}