<!--	//javascriptfunction showhide(element) {	//for(i=0; i<count; i++){		which = document.getElementById(element);		if(which.style.display == 'none') {			which.style.display = '';		} else{ 			which.style.display = 'none';		}	//}	return false;}function show_element(element) {	which = document.getElementById(element);	which.style.display = '';	return false;}function hide_element(element) {	which = document.getElementById(element);	which.style.display = 'none';	return false;}function hiderows() {	for(i=0; i<TableRows.length; i++) {		which = document.getElementById(TableRows[i]);		which.style.display = 'none';	}	return false;}function showrow(row) {	//for(i=0; i<count; i++){		which = document.getElementById(row);		if(which.style.display == 'none') {			which.style.display = 'table-row';		} else{ 			which.style.display = 'none';		}	//}	return false;}function hidetabs() {	for(i=0; i<TableRows.length; i++) {		which = document.getElementById(TableRows[i]);		which.style.display = 'none';	}	return false;}function showtab(row,count) {	hidetabs();	//for(i=0; i<count; i++){		which = document.getElementById(row);		if(which.style.display == 'none') {			which.style.display = '';		} else{ 			which.style.display = 'none';		}	//}	return false;}function tabsoff() {	for(i=0; i<TableRows.length; i++) {		which = document.getElementById(TableRows[i] + '-tab');		which.style.background='#eeeeee';	}	return false;}function tabon(tab) {	tabsoff();		which = document.getElementById(tab);	which.style.background='#ffffff';}function swapdivs(div1,div2) {	//alert("Swap divs");	swap1 = document.getElementById(div1);	swap2 = document.getElementById(div2);		swap1.style.display = 'none';	swap2.style.display = '';	return false;	}function swaptrs(tr1,tr2) {	swap1 = document.getElementById(tr1);	swap2 = document.getElementById(tr2);		swap1.style.display = 'none';	swap2.style.display = 'table-row';	return false;}function openWindow(URL,W,H) {				//alert('Width is ' + width + ' and height is ' + height);	newWindow=window.open(URL,"thenewwindow","toolbar=yes,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + W + ",height=" + H);	//newWindow.opener.name= "main";	//newWindow.focus();}function popUp(URL,width,height,toolbar) {				//alert('Width is ' + width + ' and height is ' + height);	newWindow=window.open(URL,"thenewwindow","toolbar=" + toolbar + ",location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",top="+((screen.height/2)+(height + height/2))+",left="+((screen.width/2)-(width - width/2)));	//newWindow.opener.name= "main";	//newWindow.focus();		 			}function confirmDelete (URL) {        answer = confirm ("Are you sure you want to delete this record, this is permanent.");           if (answer) {                           window.location.href = URL;                             }}function readCookie(c_name) {	if (document.cookie.length>0) {  		c_start=document.cookie.indexOf(c_name + "=");  		if (c_start!=-1) {    		c_start=c_start + c_name.length+1;    		c_end=document.cookie.indexOf(";",c_start);    		if (c_end==-1) c_end=document.cookie.length;    		return unescape(document.cookie.substring(c_start,c_end));    	}	}	return "";}function getCookie(c_name) {	if (document.cookie.length>0) {		c_start=document.cookie.indexOf(c_name + "=");		if (c_start!=-1) {			return true;		} else {			return false;		}	}	return false;}function setCookie(c_name,value,domain,expiredays) {	var exdate=new Date();	exdate.setDate(exdate.getDate()+expiredays);	document.cookie=c_name+ "=" +escape(value)+";path=/;domain="+ domain +";"+	((expiredays==null) ? "expires=Fri, 02-Jan-1970 00:00:00 GMT'" : ";expires="+exdate.toUTCString());}function populateField (frm, formField, v) {	// alert("populate field "+formField)	document.forms[frm].elements[formField].value = v;}function getCalendar (form,formField,month,year,type) {	var calWin = window.open("/includes/calendar.php?f="+ form +"&z=" + formField +"&month="+month +"&year="+year+"&type="+type, "admin_window","width=350,height=350,resizable=yes,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes");	if (window.focus != null) calWin.focus();}function popUp2(URL, winName, oOverride) {	//	//	SYNTAX: oProp={ width:496, height:642 }; popUp2('print_me.php', 'PrintMe', oProp); return false;	//	var oWin = { toolbar:0, location:'no', status:'no', menubar:'no', scrollbars:'yes', resizable:'yes', width:460, height:400, top:0, left:0 };	var str = '';	for (prop in oOverride) { oWin[prop] = oOverride[prop]; }		for (prop in oWin) {		if (prop=='top') oWin['top'] = (screen.height/2) - (oWin['height']/2);		if (prop=='left') oWin['left'] = (screen.width/2) - (oWin['width']/2);				str += prop +'='+ oWin[prop] +',';	}		//alert(str);	newWindow=window.open(URL, winName, str);	//newWindow.focus();}//-->