
function openInNewWindow(strfile,strTitle,strAbstract)
{
//added 21-jan-03 Sean Hasson
var ipx_file="files/" + strfile + ".ipx";
var newWindow = window.open("ipx.asp?strIpxfile=" + ipx_file + "&strTitle=" + strTitle + "&strAbstract=" + strAbstract ,null,"height=400,width=500,toolbar=no,scrollbars=yes,menubar=no,location=no");
newWindow.focus();
}

function isPositiveInt(strIn) 
{
	var strCheck = "0123456789"
	var tmpChar;
	var nLen = strIn.length;
	var i;
	for(i=0; i<nLen; i++)
	{
		tmpChar = "" + strIn.substring(i, i+1);
		if ("-1"==strCheck.indexOf(tmpChar))
		{
			return false;
		}
	}
			
	return true;
}

function isPositiveReal(strIn)
{
	var strCheck = '0123456789';
	var bDecimalFound=false;
	var nLen = strIn.length;
	var i;
	var tmpChar;
			
	for(i=0;i<nLen;i++)
	{
		tmpChar = strIn.substring(i, i+1);
		if('.'==tmpChar)
		{
			if(bDecimalFound)
			{
				return false;
			}
			bDecimalFound=true;
		}
		else
		{
			if("-1"==strCheck.indexOf(tmpChar))
			{
				return false;
			}
		}
	}
	return true;
}

function ValidMail(str){
	if(str.length<4)return 0
	if(str.indexOf("@")<1) return 0
	if(str.indexOf(".")<1) return 0
	else return 1
}

function showHelpWindow(strPage, nHeight, nWidth)
{
	window.showHelp;
	var dialogWindow = window.showModelessDialog(strPage,null,"dialogHeight:" + nHeight + "px;dialogWidth:" + nWidth + "px;status:no;");
}
