function trim(str){ return str.replace(/^\s*|\s*$/g,""); } function filterParameterValue(str){ return str.replace(/#/g, "").replace(/&/g,"").replace(/\'/g, "").replace(/\"/g, ""); } function contextHelp(theLink){ var mat = false; if(theLink.indexOf("http")<0 && theLink.indexOf("bookmark")<0) { mat = true; theLink = "../../msa/bookmark?helppopup&case=" + theLink; } popupWin=window.open(theLink, "Context", "width=560,height=320,toolbar=0,scrollbars=1,resizable=0"); setTimeout("popupWin.focus()",150); // when this function is called, wait 150 milliseconds before putting focus on the window. if(mat) return false; } function openChangePackageAppln(childURL) { if (window.showModalDialog(childURL,"dialogHeight:600px;dialogWidth:800px;center:Yes; help: No;") == 'Y' ) { var url = document.URLUnencoded; if(url.indexOf("?") > 0) url = url + "&Order_Success=Y"; else url = url + "?Order_Success=Y"; location.href = url; } else return; } function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0 if(window.screen)if(isCenter)if(isCenter=="true"){ var myLeft = (screen.width-myWidth)/2; var myTop = (screen.height-myHeight)/2; features+=(features!='')?',':''; features+=',left='+myLeft+',top='+myTop; } window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //General Purpose popUp Script //usage: (#, #, 'name', 'url', 1/0, 1/0) where the last 2 parameters must be a 1 or 0. function popUpWindow (window_width, window_height, window_name, window_url, _resizeable, _scrollbars ) { var options="resizable="+_resizeable+",scrollbars="+_scrollbars+",width="+window_width+",height="+window_height+""; popupWin=window.open(window_url, window_name, options); return false; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i