// JavaScript Document

//var width = screen.availWidth;
//var height = screen.availWidth;

var isResizable = true;

function createTarget(form) {
	_target = form.target;
	_colon = _target.indexOf(":");
	
	if(_colon != -1) {
		form.target = _target.substring(0,_colon);
		form.args = _target.substring(_colon+1);
	} else if(typeof(form.args)=="undefined") {
		form.args = "";
	}

	if(form.args.indexOf("{")!=-1) {
		_args = form.args.split("{");
		form.args = _args[0];
		
		
		for(var i = 1; i < _args.length;i++) {
			_args[i] = _args[i].split("}");
			form.args += eval(_args[i][0]) + _args[i][1];
	   	}
	}
	
	form.args = form.args.replace(/ /g,"");
	_win = window.open('',form.target,form.args);
	
	if(typeof(focus)=="function")
	_win.focus();
	return true;
}


function MM_openBrWindow(theURL,winName) {

	var features='width=338,height=257,resizable,top=0,left=200';	
	var _popup = document.getElementById('popup');	
	var _win = window.open(theURL,winName,features);
	
	_win.moveTo((screen.availHeight/2)-53,(screen.availWidth/2)-169);
}

function openMapWindow(theURL,winName,features) {

	features = features + 'resizable,top=0,left=0';	
	var _popup = document.getElementById('popup');	
	var _win = window.open(theURL,winName,features);
}

function winSize() {
		window.resizeTo(915,627);
		window.moveTo(0,0)
		window.focus();
	}
