//PETERADESIGNER.COM JAVASCRIPTS


// DREAMWEAVER MENU
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



// MULTI=BROWSER BOOKMAKER (Works in IE and Mozilla at least!)

function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

// OPENS TARGET IN NEW WINDOW (EMULATES "target=_blank")
function openWin(obj){
window.open(obj.href,'','');

}


// POPUP FIXED SIZE BOX
function sf_popfix(URL,W,H) 
{var newWindow =window.open(URL, "Child", 
"width="+W+",height="+H+",toolbar=0,location=0,menubar=0,directories=0,fullscreen=0,status=0,scrollbars=0,resizable=0");
newWindow.focus(); }


// POPUP SIZEABLE BOX
function sf_popsize(URL,W,H) 
{var newWindow =window.open(URL, "Child", 
"width="+W+",height="+H+",toolbar=0,location=0,menubar=0,directories=0,fullscreen=0,status=0,scrollbars=1,resizable=1");
newWindow.focus(); }
