var browser;
browser="N";
function detect(){
	version=0;
	if (navigator.appVersion.indexOf("MSIE")!=-1){
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])

	}
	if (version>=5.5) {//NON IE browser will return 0
		//alert("You're using IE5.5+")
	    browser="I";		
	}
	if(navigator.userAgent.indexOf("Firefox")!=-1){
		var versionindex=navigator.userAgent.indexOf("Firefox")+8
		if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
			//alert("You are using Firefox 1.x or above");
			browser="F";
		}
	if(navigator.userAgent.indexOf("Opera")!=-1){		
		var versionindex=navigator.userAgent.indexOf("Opera")+6
		if (parseInt(navigator.userAgent.charAt(versionindex))>=8)
		//alert("You are using Opera 8 or 9")
		browser="O";
	}
}

var newwindow;
function popwind(url,h,w){
	detect();
	if (browser=="I"){
		newwindow=document.open(url,'name','scrollbars=no,menubar=no,resizable=yes,toolbar=no,location=no,status=no,left=200,top=150');		
	}
	else {		
	    newwindow=window.open(url,'name','scrollbars=no,menubar=no,resizable=yes,toolbar=no,location=no,status=no,left=200,top=150');		
	}
	//newwindow.moveTo(200,140);
	newwindow.resizeTo(h,w);
	if (window.focus) {newwindow.focus()}
}
function popwindscroll(url,h,w){
	newwindow=document.open(url,'name','scrollbars=yes,menubar=no,resizable=yes,toolbar=no,location=no,status=no,left=200,top=150');
	//newwindow.moveTo(200,140);
	newwindow.resizeTo(h,w);
	if (window.focus) {newwindow.focus()}
}
