function windowOpen(){
	var url = "renewal.html";
	var w = 200;
	var h = 200;
	var xPos = (screen.width-w)/2;
	var yPos = (screen.height-h)/2
	var winName="DURAS ambient";
	var w_width="width="+w;
	var w_height=",height="+h;
	var w_left=",left=" + xPos;
	var w_top=",top=" + yPos;
	var w_option=",scrollbars=1,menubar=0,status=0,resizable=0";
	var features= w_width + w_height + w_left + w_top + w_option;
	winName = window.open(url,winName,features);
	winName.moveTo(xPos,yPos);
	if(window.focus){
		winName.focus();
	}
}

function windowOpen2(ws,hs,urls){
	var url = urls;
	var w = ws;
	var h = hs;
	var xPos = (screen.width-w)/2;
	var yPos = (screen.height-h)/2
	var winName="tk2";
	var w_width="width="+w;
	var w_height=",height="+h;
	var w_left=",left=" + xPos;
	var w_top=",top=" + yPos;
	var w_option=",scrollbars=0,menubar=0,status=0,resizable=0";
	var features= w_width + w_height + w_left + w_top + w_option;
	winName = window.open(url,winName,features);
	winName.moveTo(xPos,yPos);
	if(window.focus){
		winName.focus();
	}
}

function popupOpen(){
	var url = "itadetection.html";
	var indent = 23;
	var w_name = "tkWindow";
	var osName = navigator.userAgent.toUpperCase();
	var aName = navigator.appName.toUpperCase();
	if(osName.indexOf("WIN") >= 0){
		if(aName.indexOf("EXPLORER") >= 0){
			var winName = w_name;
			var w_width = "width=" + screen.width;
			var w_height =",height=" + screen.height;
			var w_left = ",left=" + 0;
			var w_top = ",top=" + 0;
			var w_option = ",scrollbars=0,menubar=0,status=0,resizable=0";
			var features = w_width + w_height + w_left + w_top + w_option;
			winName = window.open(url,winName,features);
			winName.moveTo(0,0);
			winName.resizeTo(screen.width,screen.height);
			if(window.focus){
				winName.focus();
			}
		}else{
			var winName = w_name;
			var w_width = "width=" + screen.width;
			var w_height =",height=" + screen.height;
			var w_left = ",left=" + 0;
			var w_top = ",top=" + 0;
			var w_option = ",scrollbars=0,menubar=0,status=0,resizable=0";
			var features = w_width + w_height + w_left + w_top + w_option;
			winName = window.open(url,winName,features);
			winName.moveTo(0,0);
			winName.resizeTo(screen.width,screen.height);
			if(window.focus){
				winName.focus();
			}
		}
	}else if(osName.indexOf("MAC") >= 0){
		if(aName.indexOf("EXPLORER") >= 0){
			var winName = w_name;
			var w_width = "width=" + screen.width;
			var w_height = ",height=" + screen.height;
			var w_left = ",left=" + 0;
			var w_top = ",top=" + 0;
			var w_option = ",scrollbars=0,menubar=0,status=0,resizable=0";
			var features = w_width + w_height + w_left + w_top + w_option;
			winName = window.open(url,winName,features);
			winName.moveTo(0,0);
			winName.resizeTo(screen.width,screen.height);
			if(window.focus){
				winName.focus();
			}
		}else if(osName.indexOf("SAFARI") >= 0){
				var winName = w_name;
				var w_width = "width=" + screen.width;
				var w_height = ",height=" + screen.height - indent;
				var w_left = ",left=" + 0;
				var w_top = ",top=" + 0;
				var w_option = ",scrollbars=0,menubar=0,status=0,resizable=0";
				var features = w_width + w_height + w_left + w_top + w_option;
				winName = window.open(url,winName,features);
				winName.moveTo(0,0);
				winName.resizeTo(screen.width,screen.height - indent);
				if(window.focus){
					winName.focus();
				}
		}else{
				var winName = w_name;
				var w_width = "width=" + screen.width;
				var w_height = ",height=" + screen.height;
				var w_left = ",left=" + 0;
				var w_top = ",top=" + 0;
				var w_option = ",scrollbars=0,menubar=0,status=0,resizable=0";
				var features = w_width + w_height + w_left + w_top + w_option;
				winName = window.open(url,winName,features);
				winName.moveTo(0,0);
				winName.resizeTo(screen.width,screen.height);
				if(window.focus){
					winName.focus();
				}
		}
	}
}

function windowClose(){
	window.close();
}
