var addEvent = function(){
	if(document.addEventListener){
		return function(element, type, callback){
			element.addEventListener(type, callback, false);
		}
	}
	else if(document.attachEvent){
		return function(element, type, callback){
			var fn = function(){
				callback.call(element, window.event);
			}
			element.attachEvent("on" + type, fn);
		}
	}
	else{
		return function(element, type, fn){
			element["on" + type] = fn;
		}
	}
}();


function QAS_Popup(){
    QAS_PRO = window.open("qas/popup-pro3.jsp","QAS_PRO", "scrollbars=yes,resizable=yes,width=600,height=450"); 
}




function NewWindow(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

