
function popWin(inURL,inName,inHeight,inWidth,inScrollbars,inResizeable) {
	var newWindow
	var xLeft
	var yTop
	newWindow=window.open (inURL, inName, 'resizable='+inResizeable+',status=no,scrollbars='+inScrollbars+',width='+inWidth+',height='+inHeight)
	//xLeft=(screen.width-inWidth)/2
	//yTop=(screen.height-inHeight-50)/2
	//yTop=(screen.height-50)
	//alert(yTop)
	//newWindow.moveTo(xLeft,yTop); // absolute positioning
	newWindow.focus();
}

function sureDel(theText){
	if (confirm(theText)){
		return true;
		}else{
		return false;
		}
}

function popAutoSizer(){
		var screenHmax=(screen.height-50)
		ns4 = (document.layers)? true:false
		ie4 = (document.all)? true:false
		ns6 = (navigator.userAgent.indexOf("Netscape6")!= -1) ? true:false
		winH = (ns4)? document.height : document.body.scrollHeight+32
		winW = (ns4)? document.width : document.body.scrollWidth+10
		if (ns6==true) {
			winH = document.height+30
		}
		if (winH > screenHmax){
			winH=screenHmax
		}
		
		
		//if(winH > 700){winH = 900}
			//alert(winH);
		window.resizeTo(winW,winH -10)
		//window.resizeTo(winW,900)
		window.moveTo(200,50)
	}

function checkFields(){
		
			if(document.mess.strBody.value == ''){
				alert('Please write something in the message field!');
				document.mess.strBody.focus();
				return false;
			}
				return true;
			}


























