<!--
// positioning the window based on browser size
if (self.innerWidth){
frameWidth = self.innerWidth;
frameHeight = self.innerHeight;
} 
else if (document.documentElement && document.documentElement.clientWidth){
frameWidth = document.documentElement.clientWidth;
frameHeight = document.documentElement.clientHeight;
} 
else if (document.body){
frameWidth = document.body.clientWidth;
frameHeight = document.body.clientHeight;
} 
else {
frameWidth = 600;
frameHeight = 400;
}

//windowName = "IMCworks";	
function openNewWindow(URLtoOpen,windowName){
    windowFeatures = "width=616,height=560,toolbar=no,scrollbars=yes";
	var winl = (frameWidth/2) +15;
	var wint = 30;
	//var wint = (frameHeight/2);
	var newWindow = window.open(URLtoOpen, windowName, windowFeatures + ',left='+winl+',top='+wint+'');
	newWindow.focus();
	}
	
function openSecondWindow(URLtoOpen,windowName){
    windowFeatures = "width=640,height=560,toolbar=no,scrollbars=yes";
	var winl = (frameWidth/2) +15;
	var wint = 30;
	//var wint = (frameHeight/2);
	var secondWindow = window.open(URLtoOpen, windowName, windowFeatures + ',left='+winl+',top='+wint+'');
	secondWindow.focus();
	}
	
// end of script -->

