
function addIEFavorite() { //add a parameter the site link to remove the site name from this function
if (window.external) {
    external.AddFavorite(location.href, 'www.SingaporePropertiesOnline.com')
} else {
    alert("Oops, your browser doesn't support this feature.\n" +
  "If you are using Netscape Navigator,click Bookmarks\n" +
  "and then Add Bookmark to add this site to your favorites.");
    }
}

function disableme (what, button_id) {
    what = document.getElementById(what);
    what.disabled = true;
    if(button_id!='')
        what.value=button_id;
    return true;
}



function popup(popup_link)
{
    window.open(popup_link, 'tinywindow', 'scrollbars=yes,menubar=no,resizable=yes,location=no,width=1015,height=760');
    //xxx.focus();
}

function popupsize(popup_link,width,height,menubar)
{
    width=parseInt(width)+20;
    height=parseInt(height)+20;
    if(!menubar) 
        menubar='no';

    //pr=
    window.open(popup_link, '', 'scrollbars=yes,menubar='+menubar+',resizable=no,location=no,width='+width+',height='+height);
    //pr.focus();
}


function print_window(link)
{
    link = link + '&printit=yes'
    new_print_window=window.open(link, 'printwindow', 'scrollbars=yes,menubar=no,resizable=yes,location=no,width=820,height=600,screenX=50,screenY=100');
    new_print_window.focus();
}

function newWindow(file,window) 
{
    msgWindow=open(file,window,'resizable=no,location=no,menubar=no,scrollbar=yes,width=430,height=380,screenX=10,screenY=10');
    if (msgWindow.opener == null) 
    {
        msgWindow.opener = self;
    }
    msgWindow.focus();
}

