cooisIE4 = document.all? true : false;isIE6 = document.getElementById && document.all ? true : false;isNS4 = document.layers? true : false;isNS6 = document.getElementById && !document.all ? true : false;function getDOMObject (documentID){	if (isIE4)	{		return document.all[documentID];	}	else if(isIE6)	{		return document.getElementById(documentID);	}	else if (isNS4)	{		return document.layers[documentID];	}	else if (isNS6)	{		return document.getElementById(documentID);	}}function clearSearchText(SrchObj){	SrchObj.value = "";	SrchObj.select();}function replaceString(string,text,by){	var strLength = string.length, txtLength = text.length;	if ((strLength == 0) || (txtLength == 0))		return string;	var i = string.indexOf(text);	if ((!i) && (text != string.substring(0,txtLength)))		return string;	if (i == -1)		return string;	var newstr = string.substring(0,i) + by;	if (i+txtLength < strLength)		newstr += replaceString(string.substring(i+txtLength,strLength),text,by);	return newstr;}function submitSearch(formname, type, strAppend){	d = document.forms[formname];	if ((d.elements['q'].value.length == 0) || (d.elements['q'].value == "Enter Keyword"))	{		alert("Please enter a search keyword !");		d.elements['q'].focus();		return false;	}	else if(checkUTFString(d.elements['q'].value))	{		newstr = d.elements['q'].value;		newstr = getEscapedString(newstr);		d.action = "/display.cfm?s=" + newstr + "&" + strAppend+ "&kt=" + type;	}	else	{		newstr = d.elements['q'].value;		newstr = getEscapedString(newstr);		d.action = '/' + newstr +".cfm?" +strAppend+ "&kt=" + type;	}	if (typeof(d)!='undefined')	{		d.target = "_top";	}	return true;}function sendRequest(strFormName, strElement){	thisform = document.getElementById(strFormName);	var strforms = strElement;	var arrElement = new Array();	arrElement = strforms.split("@@@@");	for(var i=0; i< arrElement.length; i++)	{		var arrTemp = new Array();		var strTemp = new String(arrElement[i]);		arrTemp = strTemp.split("####");		switch(arrTemp[0])		{			case "action":				thisform.action = arrTemp[1];				break;			case "data":				thisform.params.value = arrTemp[1];				break;		}	}	thisform.method = "POST";	thisform.submit();	return(false);}function changeStatus(strKeyword){	window.status = strKeyword;	return true;}function addbookmark(strDomainName){	bookmarkurl="http://www."+strDomainName;	bookmarktitle="Welcome To "+strDomainName;	if (window.sidebar)	{ // Mozilla Firefox Bookmark		window.sidebar.addPanel(bookmarktitle, bookmarkurl,"");	}	else if( window.external )	{ // IE Favorite		window.external.AddFavorite( bookmarkurl, bookmarktitle);	}	else if(window.opera && window.print)	{ // Opera Hotlist		return(true);	}	return(false);}function setAsHomePage(ctl, strDomainName){	bookmarkurl="http://www."+strDomainName;	if( window.external )	{ // IE		ctl.style.behavior='url(#default#homepage)';		ctl.setHomePage(bookmarkurl);	}	return(false);}function HandleLoc(){	var strUrl;	strUrl = 'http://www.pncmops.org';strUrl += '/lt.php?dn=';strUrl += '';strUrl += '&ck=';strUrl += '&isbn=';strUrl += '0';strUrl += '&uid=6&k=';	location.href = strUrl;	return true;}function getDate(){	var arrDay=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")	var arrMonth=new Array("January","February","March","April","May","June","July","August","September","October","November","December")	var objDate=new Date()	var intYear=objDate.getYear()	if (intYear < 1000)	{		intYear+=1900	}	var intDay=objDate.getDay()	var intMonth=objDate.getMonth()	var intDayMonth=objDate.getDate()	if (intDayMonth<10)	intDayMonth="0"+intDayMonth	var strCurrerntDate=arrDay[intDay]+", "+arrMonth[intMonth]+" "+intDayMonth+", "+intYear	document.write(strCurrerntDate)}var showPop = 1;var intShowToolbar = 0;function myPop(strPopupUrl){		var d = new Date();		pundername = 'newpop'+d.getTime();		if( intShowToolbar == 0)		{			newpop = window.open(strPopupUrl, pundername, 'directories=0,menubar=0,width='+screen.width+',height='+screen.height);		}		else		{			newpop = window.open(strPopupUrl, pundername, "status=1, location=1, toolbar=1,directories=1, top=0, left=0, resizable=1, scrollbars=1, width="+screen.width+",height="+screen.height+",menubar=1");		}		if (newpop!=null && typeof(newpop)!="undefined")		{			newpop.blur();		}		return newpop;}function showPopunder (strPopupUrl, intShowTool){      if(showPop==1)      {		showPop = 0;		intShowToolbar = intShowTool;		var wopen = myPop(strPopupUrl);		if (!window.opera && (wopen==null || typeof(wopen)=="undefined"))		{			x= document.getElementById('popupbutton');			x.onchange();		}	}}function checkUTFString (strValue){	var blnUTF;	var intStringLength;	if(strValue == '')	{			return (false);	}	intStringLength = strValue.length;	for(intCur = 0; intCur < intStringLength; intCur++)	{		blnUTF = true;		chrValue = strValue.charAt (intCur);		var intAscii;		for (intAscii = 0; intAscii < 128; ++ intAscii)		{			var strAscii = intAscii.toString (16);			if (strAscii.length == 1)				strAscii = "0" + strAscii;			strAscii = "%" + strAscii;			strAscii = unescape (strAscii);			//alert(strAscii);			if (strAscii == chrValue)			{				blnUTF=false;				break;			}		}		if(blnUTF == true)		{			break;		}	}	return blnUTF;}function getEscapedString (strValue){	var blnUTF;	var intStringLength;	var strReturnValue;	strReturnValue = '';
	if(strValue == '')	{			return (strValue);	}	intStringLength = strValue.length;	for(intCur = 0; intCur < intStringLength; intCur++)	{		blnUTF = true;		chrValue = strValue.charAt (intCur);		var intAscii;		for (intAscii = 0; intAscii < 128; ++ intAscii)		{			var strAscii = intAscii.toString (16);			if (strAscii.length == 1)				strAscii = "0" + strAscii;			strAscii = "%" + strAscii;			strAscii = unescape (strAscii);			if (strAscii == chrValue)			{				blnUTF=false;				break;			}		}		if(blnUTF == true)		{			strReturnValue = strReturnValue+chrValue;		}		else		{			if(chrValue == " ")			{				chrValue = "_";			}			strReturnValue = strReturnValue+escape(chrValue);		}	}	return strReturnValue;}