var popWidth=700; var popHeight=300; function confirmDelete(href) { if(confirm("Are you sure you want to delete?")) { window.location=href; return true; } } function confirmed(href) { if(confirm("Are you sure?")) { window.location=href; return true; } } /* this function is not likely to be used so it is commented. please use openPopWin function openNewWin(url,winName,features ) { window.open(url,winName,features); } */ function closeWin() { window.close(); } function autoCloseWin(message) { alert (message); setTimeout("closeWin()",5000); } function reloadParentWin() { window.opener.location.reload(); } var win = null; function NewWindow(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w-20) : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) } function openPopWin(url,winName, winHeight) { if(winHeight>0) popHeight=winHeight; NewWindow(url,winName, popWidth , popHeight , 'yes'); } function openEditor(code,siteCode) { var url; url ="EDITOR_URL?code=" + code + "&siteCode="+ siteCode; openPopWin(url,'Editor', popHeight); } function test(str) { alert(str); } function unSubscribe(href) { if(confirm("Are you sure you want to unsubscribe?")) { window.location=href; return true; } } function openHelpWin(url) { NewWindow(url,'Help', 400 , 200 , 'yes'); window.active="Help"; } function setMouseOverCssMenuClass(obj, cssClass) { if(cssClass=="headMenuHover") return; obj.style.backgroundColor = "#FCB06E"; } function setMouseOutCssMenuClass(obj, cssClass) { if(cssClass=="headMenuHover") return; obj.style.backgroundColor = "#9C9E9C"; } function search(e,obj,url) { var valSearch; var keychar; var d = document.getElementById(obj.id); //alert(d.value); valSearch=d.value; if (e.keyCode == 13) { window.location=url + "?search=" + valSearch; //document.frmSearch.submit(); } else { } } function clearSearch(obj) { var value = obj.value; if(obj.value=="Search") obj.value=''; } function resetSearch(obj) { var value = obj.value; if(obj.value=="") obj.value = "Search"; } window.onload=montre; function showItem(obj,id) { var d = document.getElementById(obj.id); var f=document.getElementById(id); if(d.value==4) { f.style.display='block'; } else { f.style.display='none'; } } function montre(id) { var d = document.getElementById(id); if (d) {d.style.display='block';} } function montreOut(id) { var d = document.getElementById(id); if (d) { d.style.display='none'; } } function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } }