﻿/*
This file will contain any global functions required by the site.
*/

/* opens a informational window, meant to be closed afterwards */
function openInfoWin(url, h, w)
{

   window.open(url,'info','height='+h+',width='+w+'toolbar=0,menubar=0,scrollbars=1,resizable=1,directories=0,titlebar=0');
}


/* used for cross-site scripting attacks */
function CleanSearchString(InStr)
{
	InStr = InStr.replace(/\</g,"");
	InStr = InStr.replace(/\>/g,"");
	InStr = InStr.replace(/\"/g,"");
	InStr = InStr.replace(/\'/g,"");
	InStr = InStr.replace(/\%/g,"");
	InStr = InStr.replace(/\;/g,"");
	InStr = InStr.replace(/\(/g,"");
	InStr = InStr.replace(/\)/g,"");
	InStr = InStr.replace(/\&/g,"");
	InStr = InStr.replace(/\+/g,"");

	return InStr;
}
