// webfruits 2.0 standard javascript

function get_ass (target,type,target2) {
	var oURL = "assistant.pl?sid=$sid&target="+target+"&target2="+target2+"&type="+type;
	window.open(oURL, "foo", "width=780,height=550,resizable=yes,status=yes,scrollbars=yes,screenx=100,screeny=50");
	}

function get_cal (target,type,cyear,cmonth,cday) {
	var oURL = "cal.cgi?target="+target+"&type="+type+"&year="+cyear+"&month="+cmonth+"&day="+cday;
	window.open(oURL, "foo", "width=300,height=200,resizable=yes,status=yes,scrollbars=yes,screenx=200,screeny=150");
	}

function popup (url, width, height) {
	window.open(url, "foo", "width="+width+",height="+height+",resizable=yes,status=yes,scrollbars=yes,screenx=100,screeny=100");
	}

function getSelected (selectItem) {
	for (i = 0; i < selectItem.length; ++i)
	if (selectItem.options[i].selected == true)
	return(selectItem[i].value);
	}
