defaultStatus="   www.GolfcourseOnline.com     ";

function openSpecials(url) {
   popupWin = window.open(url, 'PopUp', 'status=yes,resizable=yes,scrollbars=yes,toolbar=no,top=150,left=75,width=700,height=450');
 <!--popupWin = window.open('specialsDOWN.htm', 'PopUp', 'status=yes,resizable=yes,scrollbars=yes,toolbar=no,top=150,left=75,width=425,height=300'); //  done hiding code--> 
}
function GolfWits(sku) {
  popupWin = window.open('http://www.eyardagebook.com/eyb4/?i=198609&s='+sku+'', 'window_eyb', 'maximize=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resize=0,width=639,height=502,screenX=20,screenY=20,left=5,top=5')
}
function openGW(url) {
  popupWin = window.open(url, 'GolfWits', 'maximize=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resize=1,width=650,height=500,screenX=80,screenY=80,left=40,top=40')
}
function openSponsor(url) {
  popupWin = window.open(url, 'GolfWits', 'maximize=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resize=0,width=400,height=350,screenX=80,screenY=80,left=40,top=40')
}
//------------------------------------------------------------------------------------
var popupWeahter = null;
function openWeather(url) {
  popupWeahter = window.open(url, 'Weather', 'maximize=0,toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,width=470,height=500,screenX=80,screenY=80,right=-500,top=40');
  popupWeahter.focus();
  //popupWeahter.scrollBy(0, 50);  
}
//------------------------------------------------------------------------------------
function popShop(url) {
  popupShop = window.open(url, 'Shop', 'maximize=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=450,height=300')
  popupShop.focus();
}
//------------------------------------------------------------------------------------
function PopUpCounty(url) {
w = 380
h = 336
LeftPosition = (screen.width) ? (screen.width-w-50)/1 : 0;
TopPosition = (screen.height) ? (screen.height-h-130)/1 : 0;
 
self.name = "gcoHOME"; 
   
  popupWin = window.open(url, 'help', 'status=yes,resizable=yes,scrollbars=yes,width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+'');
}
//------------------------------------------------------------------------------------
var w
var h
function PopUpSearch(url) {
w = 380
h = 336
LeftPosition = (screen.width) ? (screen.width-w-50)/1 : 0;
TopPosition = (screen.height) ? (screen.height-h-130)/1 : 0;
 
self.name = "gcoHOME"; 
   
  popupWin = window.open(url, 'searchWin', 'status=yes,resizable=0,scrollbars=yes,width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+'');
}
function PopUpPage(url) {
  popupWin = window.open(url, 'view', 'status=yes,resizable=yes,scrollbars=yes,width=765,height=525')
}
//------------------------------------------------------------------------------------
function validate() {                     
 if (document.SearchNameForm.SearchName.value == "golf") {
  alert("Sorry the term golf is too ambiguous... please try again using more keywords!     \n")
  document.SearchNameForm.SearchName.focus()
  return false}
 if (document.SearchNameForm.SearchName.value == "") {
  alert("Please enter something for me to search!     \n")
  document.SearchNameForm.SearchName.focus()
  return false}
 swap('loading');
}
function putFocus(formInst, elementInst) {
  if (document.forms.length > 0) {
   document.forms[formInst].elements[elementInst].focus();
  }
}
//------------------------------------------------------------------------------------
function hideSortTable(id) {
 if (document.getElementById(id).style.display != "block")
   document.getElementById(id).style.display = "block"
   
 else 
   document.getElementById(id).style.display = "none"
 
 if (document.getElementById('sortLink').innerHTML != "Hide sorting options...")
   document.getElementById('sortLink').innerHTML= "Hide sorting options..." 
 else 
   document.getElementById('sortLink').innerHTML= "View sorting options..." 
}
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
function swap(id) {
 if (document.getElementById(id).style.display != "block")
   document.getElementById(id).style.display = "block"
 else 
   document.getElementById(id).style.display = "none"
}
//------------------------------------------------------------------------------------
function putFocus(formInst, elementInst) {
  if (document.forms.length > 0) {
   document.forms[formInst].elements[elementInst].focus();
  }
}
//------------------------------------------------------------------------------------
