/* 
 * ey.com general JavaScript - 29 January 2010  2:31 PM 
 */
 
 
function replaceStrings(inString,searchString,replacementString) {
	var newString = inString;
	var p = newString.indexOf(searchString);
	while (p>=0) {
		newString = newString.substring(0,p) + replacementString + newString.substring(p+searchString.length,newString.length);
		p = newString.indexOf(searchString);
	}
	return(newString);
}  
 
function openWebformLQS(f,e,b){
	var loc=replaceStrings($('title').html(), '&', '');
	var a="yes";
	var c="https://"+secureHostName+"/Content/vwWFPreview"+f+"?OpenDocument&pgt="+loc;
	var d=(screen.width-b)/2;
	var g=(screen.height-e)/2;
	winprops="height="+e+",width="+b+",top="+g+",left="+d+",scrollbars="+a+",resizable,status=yes,location=no,menubar=yes,toolbar=yes";
	window.open(c,"wf",winprops)
}