﻿function poponload(url)
{
	var testwindow = window.open (url, "mywindow","location=0,status=0,scrollbars=0,width=800,height=400");
}

function openpop(href, w, h)
{
    window.open(href, 'none', 'width='+w+',height='+h+',left=50,top=100,scrollbars=no,resizable=yes');
}

function winalign(){ 

    var flashW = (document.getElementById('flashcontent').offsetWidth);
    var flashH = (document.getElementById('flashcontent').offsetHeight);
	var winW = (document.getElementById('windowSize').offsetWidth - flashW)*-1;
	var winH = (document.getElementById('windowSize').offsetHeight - flashH)*-1;
	
	
    /*
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = 1008;//window.innerWidth-16;
			winH = 695;//window.innerHeight-16;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = 1029;//document.body.offsetWidth-20;
			winH = 706;//document.body.offsetHeight-20;
		}
	}*/
	
	setTimeout("window.resizeBy("+ winW +", "+ winH +");",100); 
}

window.onload = function(){
	winalign();
} 
