function PopupWindow2(strURL,intHeight,intWidth)
{
	var newWindow;
	var intTop= (screen.height - intHeight) / 2;
	var intLeft= (screen.width - intWidth) / 2;
	var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop+'';
	//self.name = "Update"
	newWindow = window.open(strURL, "Lookup", props);
}

//Disable right click script III- By Renigade (renigade@mediaone.net)
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Visit http://www.dynamicdrive.com 

var message="";
function clickIE() {
	/*
	if (document.all) {
		(message);return false;
	}
	*/
	
}
function clickNS(e) {
	/*	
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2||e.which==3) {
			(message);return false;
		}
	}
	*/
	
}

/*
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}
else{
	document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
*/

function disableselect(e){
	return false
}

function reEnable(){
	return true
}

function popup2(urlstr,windowname){
	window.open (urlstr, windowname,"toolbar=no, scrollbars=no, resizeable=no, height=390, width=400")
	return;
}
function popup(urlstr,windowname){
	window.open (urlstr, windowname,"toolbar=no, scrollbars=no, resizeable=no, height=207, width=500")
	return;
}
function popup1(urlstr,windowname){
	window.open (urlstr, windowname,"toolbar=no, scrollbars=no, resizeable=no, height=286, width=500")
	return;
}

function popupWindow(urlstr,windowname,w,h,l,t){
	window.open (urlstr, windowname,"toolbar=no, scrollbars=yes, resizeable=no, height=" + h + ", width=" + w + ", left=" + l + ",top=" + t)
	return;
}


function popupOnTop(urlStr,width,height) {
	window.showModalDialog(urlStr,null,'status:no;dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;dialogHide:true;help:no;scroll:yes')
	return;
}


function alert1() {
	alert('etst');
	return;
}

function textCounter(field,maxlimit) {
	if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit);
}

/*
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
	document.onmousedown=disableselect
	document.onclick=reEnable
}		
//
*/ 