
function help(str) {
	OpenWin = this.open(str, "helpWindow", "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,width=560,height=450,left=175,top=40");
}
function article(str) {
	OpenWin = this.open(str, "messageWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=560,height=450,left=175,top=40");
}
function popupWindow(str) {
	OpenWin = this.open(str, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=480,left=175,top=40");
}
function popup(str) {
	OpenWin = this.open(str, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=560,height=450,left=175,top=40");
}
function profile(str) {
	OpenWin = this.open(str, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=450,left=175,top=40");
}
function message(str) {
	OpenWin = this.open(str, "messageWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=450,height=150,left=175,top=60");
}
function windowClose ()
{
	window.opener.location.reload();
	window.close();
}
function textLimiter(field, countfield, maxlimit) 
{
	if (field.value.length > maxlimit)
		field.value = field.value.substring(0, maxlimit);
	else 
		countfield.value = maxlimit - field.value.length;
}

function showhide(layer_ref) {

	var state = document.getElementById(layer_ref).style.display;
	if (state == 'block') {
		state = 'none';
	}
	else {
		state = 'block';
	}
	document.getElementById(layer_ref).style.display = state;
}