﻿/* JavaScript file */
// window
function wfloat5 (target,size) {
var wWidth=830;
var wHeight=500;
var cWidth=window.screen.width;
var cHeight=window.screen.height;
if(cHeight && cWidth){
	var leftOffset=Math.ceil((cWidth-wWidth)/2);
	var topOffset=Math.ceil((cHeight-wHeight)/2);
	var size = size || 'width=830,height=500';
	var target = target || 'wfloat5';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'location=no,toolbar=no,resizable=yes,menubar=no,status=no,top='+topOffset+',left='+leftOffset);
 }
return false;
}

/*
function wfloat4 (target,size) {
var wWidth=825;
var wHeight=500;
var cWidth=window.screen.width;
var cHeight=window.screen.height;
if(cHeight && cWidth){
	var leftOffset=Math.ceil((cWidth-wWidth)/2);
	var topOffset=Math.ceil((cHeight-wHeight)/2);
	var size = size || 'width=825,height=500';
	var target = target || 'wfloat4';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'location=no,toolbar=no,resizable=yes,menubar=no,status=no,scrollbars=yes,top='+topOffset+',left='+leftOffset);
 }
return false;
}
*/
function wfloat (target,size) {
var wWidth=830;
var wHeight=700;
var cWidth=window.screen.width;
var cHeight=window.screen.height;
if(cHeight && cWidth){
	var leftOffset=Math.ceil((cWidth-wWidth)/2);
	var topOffset=Math.ceil((cHeight-wHeight)/2);
	var size = size || 'width=830,height=700';
	var target = target || 'wfloat';
	openwnd ('',target,'width='+wWidth+',height='+wHeight+'location=no,toolbar=yes,resizable=no,menubar=no,status=no,scrollbars=no,top='+topOffset+',left='+leftOffset);
 }
return false;
}

