// get pathsvar strFullURL = location.href;var pos1 = strFullURL.indexOf( '/', 8 );var pos2 = strFullURL.lastIndexOf( '/' ) + 1var docPath = strFullURL.slice( pos1, pos2 );var dbPath = strFullURL.slice( 0, strFullURL.lastIndexOf( 'nsf' ) + 4 );var path1 = strFullURL.slice( 0, strFullURL.lastIndexOf( 'nsf' ) );var folderPath = strFullURL.slice( 0, path1.lastIndexOf( '/' ) + 1 )// child window objectsvar outputWin;function openNsfPage( pageName ) {	strUrl = dbPath + pageName + '?OpenPage'	var x = (screen.width - 750)/2;	var h = parseInt(document.body.clientHeight) - 30 ;	var y = (screen.height - h)*.25;	var strWinOpts = "width=750, height=" + h +  " , scrollbars=yes, resizable=yes, location=no, menubar=yes, toolbar=yes, top=" + y + ",left=" + x;			outputWin = window.open( strUrl, "NsfPage", strWinOpts);	outputWin.focus();	}function showImg( urrl ) {	strUrl = dbPath + urrl	var x = (screen.width - 750)/2;	var h = parseInt(document.body.clientHeight) - 30 ;	var y = (screen.height - h)*.25;	var strWinOpts = "width=750, height=" + h +  " , scrollbars=yes, resizable=yes, location=no, menubar=no, toolbar=no, top=" + y + ",left=" + x;			outputWin = window.open( strUrl, "Image", strWinOpts);	outputWin.focus();	}function openLetsTalk( ){	var x = (screen.width - 750)/2;	var h = 400;	var y = (screen.height - h)*.25;	var strWinOpts = "width=750,height="+ h + ",status=yes,resizable=yes, scrollbars=yes, top=" + y + ",left=" + x;	var strPath = folderPath + "gp.nsf/letstalk" + "?openform"	outputWin = window.open( strPath,"LetsTalk", strWinOpts);}function openRFQ( whichRFQ, f1, f2, f3 ){	//var x = parseInt(window.screenLeft) + 20;	//var y = parseInt(window.screenTop) ;	var rfqForm;	if( whichRFQ != null ){		rfqForm = whichRFQ;	} else {	 	rfqForm = "rfqgeneric";  	}  		var x = (screen.width - 750)/2;	var h = parseInt(document.body.clientHeight) - 30 ;	var y = (screen.height - h)*.25;	var strWinOpts = "width=750,height="+ h + ",status=yes,resizable=yes, scrollbars=yes, top=" + y + ",left=" + x;	var urlArgs = "";		if( whichRFQ == "rfqnew" ){		urlArgs = "&mfg=" + f1 + ";model=" + f2 + ";"	}	if( whichRFQ == "rfqnewinv" || whichRFQ == "rfqpartsinv" ){		urlArgs = "&mfg=" + f1 + ";desc=" + f2 + ";" + ";qty=" + f3 + ";"	}	var strPath = folderPath + "gp.nsf/" + rfqForm + "?openform" + urlArgs;	outputWin = window.open( strPath,"RFQ", strWinOpts);}function openContactUs() {/*	var x = (screen.width - 300)/2;	var y = (screen.height - 200)*.25;	outputWin = window.open("", "ContactUS", "width=300,height=200,status=no,resizable=no,top=" + y + ",left=" + x );	var strH = '<html> <head> <title>Workspace Help</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p><b>Contact Best Pumpworks:<br> </b></p> <table width="236" border="0" cellspacing="0"> <tr> <td width="73"><b><font color="#0000FF">Email:</font></b></td> <td width="163"><a href="mailto:bestpwsales@bestpw.com">&nbsp;Email</a></td> </tr> <tr> <td width="73"><font color="#0000FF"><b>Phone:</b>&nbsp;</font></td> <td width="163">800-349-2018</td> </tr> <tr> <td width="73"><font color="#0000FF"><b>Fax:</b>&nbsp;</font></td> <td width="163">713-956-2141</td> </tr> <tr> <td width="73">&nbsp;</td> <td width="163">&nbsp;</td> </tr> <tr> <td colspan="2"><b> <input type="button" value="Close Window" onClick="javascript:window.close()"> </b></td> </tr> </table> <p><b> <br> </b></p> <p><br> <br> </p> </body> </html> '	outputWin.document.write( strH )*/location.href =  "../gp.nsf/viewsub?openform&page=ContactInfo;title=Contact Information;"}function switchImg( toImage ){	window.event.cancelBubble = true;   	var srcElement = window.event.srcElement;	srcElement.src = eval( toImage + '.src');}function doAlert( msg ) {		var path = dbPath + "Alert?OpenForm&message=" + msg + ";";		var x = (screen.width - 280)/2;		var y = (screen.height - 300)*.25;		var strW = "Height=150,Width=280,left=" + x +",top=" + y;		window.open( path, "", strW );}function setLanguage( lang ){	document.cookie = "language=" + lang + ";path=/;";	location.reload();}function signOut() {	var expireDate = new Date();	expireDate.setMonth( expireDate.getMonth() + 6 );	document.cookie = "AutomaticLogin=no" + ";expires=" + expireDate.toGMTString() + ";path=/;" ;	location.href = "/names.nsf?logout&redirectto=/" + document.forms[0].WebPath.value + "gp.nsf/viewsub?openform&page=home;";}