var PATH_VIRTUAL_CALENDAR="/wso/webpages/calendar";var PARAM_REQUEST_FORMNAME="formname";var PARAM_REQUEST_ELEMENTNAME="elementname";function fnShowWindow(strDstURL,intWidth,intHeight){if(!intWidth){intWidth=300;}if(!intHeight){intHeight=100;}var intNewPosX=window.screen.width/2-intWidth/2;var intNewPosY=window.screen.height/2-intHeight/2;var strFeatures="dependent=yes,fullscreen=no,scrollbars=no,location=no,menubar=no,resizable=no,height="+intHeight+",width="+intWidth+",status=no,left="+intNewPosX+",top="+intNewPosY;var objWindow=window.open(strDstURL,"StandaloneWnd",strFeatures);objWindow.focus();return objWindow;}function fnShowPopup(strDstURL,intWidth,intHeight){if(!intWidth){intWidth=300;}if(!intHeight){intHeight=100;}var intNewPosX=window.screen.width/2-intWidth/2;var intNewPosY=window.screen.height/2-intHeight/2;var strFeatures="dependent=yes,fullscreen=no,scrollbars=no,location=no,menubar=no,resizable=no,height="+intHeight+",width="+intWidth+",status=no,left="+intNewPosX+",top="+intNewPosY;var objWindow=window.open(strDstURL,"StandaloneWnd",strFeatures);}function fnShowCalendar(strFormName,strElementName){var objForm=document.forms[strFormName];if(objForm){var objElement=objForm.elements[strElementName];if(objElement){var strElementValue=objElement.value;var strUrl=PATH_VIRTUAL_CALENDAR+"?"+PARAM_REQUEST_FORMNAME+"="+strFormName+"&"+PARAM_REQUEST_ELEMENTNAME+"="+strElementName+(strElementValue?"&date="+strElementValue:"");fnShowWindow(strUrl,200,147);}}}function show(doc,v,h){window.open(doc,"newWindow","menubar=0,status=0,scrollbars=0,resizable=0,width="+v+",height="+h);}