function clearField(object) {
object.value ="";
}

function formrule(field)
{
	if (field.defaultValue == field.value) field.value = "";
}

function formrule2(field) {
  if (field.value == "") {
    field.value = field.defaultValue;
  }
}

var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

function remoteflash() {
	document.write('<embed src="images/flash/home.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="259"></embed>');
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function addbookmark()
{
bookmarkurl="http://www.bayareabodydoc.com"
bookmarktitle="Blackhawk Plastic Surgery"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}