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 getClearSearch(obj) { //documet.name.value=""; if(obj.value=='Site Search...') obj.value=''; } function getSearchText(obj) { if(obj.value=='') obj.value='Site Search...'; } function getClearProduct(obj) { //documet.name.value=""; //alert("="+obj.value); if(obj.value=='Quantity Required:') obj.value=''; } function getProductText(obj) { if(obj.value=='') obj.value='Quantity Required:'; } //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); for (var i = 1; i<=10; i++) { if (document.getElementById('smenu'+i)) { document.getElementById('smenu'+i).style.display='none'; document.getElementById('smenu'+i).style.width='100%'; } } if (d) {d.style.display='block';} } function montreOut(id) { var d = document.getElementById(id); for (var i = 1; i<=10; i++) { if (document.getElementById('smenu'+i)) { document.getElementById('smenu'+i).style.display='none'; } } if (d) {d.style.display='block';} } function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } } function search(e,obj) { var valSearch; var keychar; var d = document.getElementById(obj.id); valSearch=d.value; if (e.keyCode == 13) { window.location="http://linux.datasoft.local/isz/search.php?search="+valSearch; } else { } } var timeout = 500; var closetimer = 0; var ddmenuitem = 0; // open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; // get new layer and show it ddmenuitem = document.getElementById(id); ddmenuitem.style.visibility = 'visible'; } // close showed layer function mclose() { if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } // go close timer function mclosetime() { closetimer = window.setTimeout(mclose, timeout); } // cancel close timer function mcancelclosetime() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null; } } // close layer when click-out document.onclick = mclose; function clearField(obj) { //documet.name.value=""; obj.value=''; } function clearField(obj) { obj.value=''; } function clearText(obj, fieldValue) { if(obj.value && obj.value==fieldValue) obj.value = ''; } function retainText(obj, fieldValue) { if(obj.value == '') obj.value = fieldValue; } function showAuthorDetails(postID) { var divID = "div" + postID; document.getElementById(divID).style.display = 'block'; document.getElementById(divID).style.visibility = 'visible'; } function hideAuthorDetails(postID) { var divID = "div" + postID; document.getElementById(divID).style.display = 'none'; document.getElementById(divID).style.visibility = 'hidden'; } function clearFieldValue(obj,fieldValue) { if(obj.value!='' && obj.value==fieldValue) obj.value=''; } function retainFieldValue(obj,fieldValue) { if(obj.value=='') obj.value=fieldValue; } function menuMouseOver(tdID) { var anchorID = tdID.replace("td", "anchor"); document.getElementById(tdID).className = "headerMenuActive"; document.getElementById(anchorID).className = "headerMenuActive"; } function menuMouseOut(tdID,menuClass) { var anchorID = tdID.replace("td", "anchor"); if(menuClass=="headerMenu") { document.getElementById(tdID).className = "headerMenu"; document.getElementById(anchorID).className = "headerMenu"; } } function changeHoverEffect(kitchenID) { var divID, imgID; divID = "divKitchen" + kitchenID; imgID = "img" + kitchenID; document.getElementById(divID).style.background = "#2C2B4A"; document.getElementById(imgID).style.opacity = "0.5"; document.getElementById(imgID).style.filter="alpha(opacity=50)"; } function reChangeHoverEffect(kitchenID) { var divID, imgID; divID = "divKitchen" + kitchenID; imgID = "img" + kitchenID; document.getElementById(divID).style.background = ""; document.getElementById(imgID).style.opacity = "1.0"; document.getElementById(imgID).style.filter="alpha(opacity=100)"; }