﻿// JScript File
var NS=false;
var MSIE=false;
browser=navigator.appName;
version=parseInt(navigator.appVersion);
if(browser=="Netscape" && version>= 3) NS=true
else
	if(browser=="Microsoft Internet Explorer" && version>= 4) MSIE=true;

function openWindow(url) 
{
	var win=window.open(url,'','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=800,height=600,resizable=yes,left=10,top=10');
	win.focus();
} 
 
function popUp(url, width, height) 
{
	var win=window.open(url,'','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width='+ width +',height='+height +',resizable=no,left=10,top10');
	if (win.opener==null) win.opener=self;
	if (window.focus) win.focus();
} 

function popUpToolbar(url, width, height) 
{
	var win=window.open(url,'','toolbar=yes,status=no,scrollbars=no,location=no,menubar=no,directories=no,width='+ width +',height='+height +',resizable=no,left=10,top10');
	if (win.opener==null) win.opener=self;
	if (window.focus) win.focus();
} 

function popUpToolbarResizable(url, width, height) 
{
	var win=window.open(url,'','toolbar=yes,status=no,scrollbars=no,location=no,menubar=no,directories=no,width='+ width +',height='+height +',resizable=yes,left=10,top10');
	if (win.opener==null) win.opener=self;
	if (window.focus) win.focus();
} 

function popUpResizable(url, width, height) 
{
	var win=window.open(url,'','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width='+ width +',height='+height +',resizable=yes,left=10,top10');
	if (win.opener==null) win.opener=self;
	if (window.focus) win.focus();
} 

function popUpScroll(url, width, height) 
{
	var win=window.open(url,'','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width='+ width +',height='+height +',resizable=yes,left=10,top=10');
	if (win.opener==null) win.opener=self;
	if (window.focus) win.focus();
} 

function popupText(text, width, height)
{
	popUp('../home/comment.asp?text=' + text, width, height);
}

function popupTextScroll(text, width, height)
{
	popUpScroll('../home/comment.asp?text=' + text, width, height);
}

function cloneWindow()
{
	openWindow(document.location.href);
}




