/* options of small windows */
var refw = null;
var refw_closed = false;

var optref = "resizable=0,scrollbars=1,copyhistory=0,directories=0,location=0,menubar=0,status=0,toolbar=0"
var pathref="ref/gb_ref.asp?ID="

/*  */
function ref(urlname,hg){
	if(arguments.length==1){
		hg=400
	}
	var hw = 450
	var hl = 0
	var ht = 0
	var aref = "width="+hw+",height="+hg+",left="+hl+",top="+ht
	refw = window.open(pathref + urlname,"msi",aref+","+optref)
	refw_closed=false
}

function refclose(){
	if (refw != null){
        	if (!refw_closed){
            		refw_closed = true;
            		refw.close();
		}
	}
}



/***************************************************/

function wcontact(url){
	var hg=500
	var hw = 500
	var hl = 0
	var ht = 0
	var aref = "width="+hw+",height="+hg+",left="+hl+",top="+ht
	msic = window.open(url,"msic",aref+","+optref)
}

/*  */
function wndw(url){
	var hg=500
	var hw = 400
	var hl = 0
	var ht = 0
	var aref = "width="+hw+",height="+hg+",left="+hl+",top="+ht
	reft = window.open("ref/"+url,"msit",aref+","+optref)
}

/* image swapping function */
function hiLite(imgDocID, imgObjName) {
	document.images[imgDocID].src = eval(imgObjName + ".src");
}

function mediumtutor(){
	wndw("medium1.asp")
}
function designtutor(){
	wndw("tutorial1.asp")
}
function serversecurity(){
	wndw("server1.asp")
}
function afriend(){
	wcontact("friend.asp")
}