function check_form () {
  if (document.the_form.login.value == '') {
    alert("You must enter your login e-mail address.")
    return false;
  }
  if (document.the_form.password.value == '') {
    alert("You must enter a Password.")
    return false;
  }
}

function textLimit(field, maxlen) {
if (field.value.length > maxlen + 1)
alert('You have reached the maximum characters allowed!');
if (field.value.length > maxlen)
field.value = field.value.substring(0, maxlen);
}


function openWin(){
window.open("/submit/note.asp", "oNewWin", "left=300,top=300,width=250,height=75,toolbar=no");
}

	
function go_small_pop_up (loc) {
	new_loc = loc;	
	window.open(loc,'small_pop_up','toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=560,height=220');
}
function go_pop_up (loc) {
	new_loc = loc;	
	window.open(loc,'pop_up','toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=560,height=420');
}

function go_big_pop_up (loc) {
	new_loc = loc;
	window.open(loc,'big_pop_up','toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=700,height=600');
}

function go_pop_up_size (loc,width,height) {
	new_loc = loc;	
	window.open('/main/popup.asp?loc='+loc,height,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,width='+width +',height='+height);
}

function show_popup(loc) {

	window.open(loc, "show_popup","location=no,directories=no,status=no,menubar=no,width=500,height=350,scrollbars=yes,resizable=yes")

}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function set_cookie (cookie_name,cookie_value) {
  document.cookie = cookie_name + '=' + cookie_value + ';path=/kc/';
}

function LoadPage () {

MM_showHideLayers('Layer0','','show','Layer1','','show','Layer2','','show','Layer3','','show','Layer4','','show','Layer5','','show','Layer6','','show');

}
// ***********************
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
// ***********************


function toggle_visibility(id) {
	var e = document.getElementById(id);
	if(e.style.display == 'block')
	  e.style.display = 'none';
	else
	  e.style.display = 'block';
}

