function resizeWindow(targetWidth, targetHeight, myTarget){
	var myWidth = targetWidth;
	var myHeight = targetHeight;
	
	if(! arguments[2]){
		myTarget = self;
	}
	
	myTarget.resizeTo(targetWidth, targetHeight);
	
	if(window.opera || document.layers){
		myWidth = myTarget.innerWidth;
		myHeight = myTarget.innerHeight;
	}else if(document.all){
		myWidth = myTarget.document.body.clientWidth;
		myHeight = myTarget.document.body.clientHeight;
	}else if(document.getElementById){
		myWidth = myTarget.innerWidth;
		myHeight = myTarget.innerHeight;
	}
	
	if(myWidth != targetWidth || myHeight != targetHeight){
		myTarget.resizeBy(targetWidth - myWidth, targetHeight - myHeight);
		if(document.layers){
			myTarget.location.reload(0);
		}
	}
	
	myTarget.focus();
}

function openWindow(myUrl) {
	var myConfig = 'scrollbars=0,resizable=1,toolbar=0,location=0,directories=0,status=1,menubar=0,directories=0';

	window.open(myUrl,'', myConfig);
}


