/*
<!--$$Revision: 6 $-->
<!--$$Author: Mark $-->
<!--$$Date: 11/09/08 4:18p $-->
<!--$$Logfile: /Development/Property Phase1/Web/eSaleYards/ESYJScript.js $-->
<!--$$NoKeywords: $-->
*/

/*
Purpose: Saleyards.com.au JavaScript functions.
*/

function GetPassword()
{
	window.open('/membership/forgottonpassword.asp', 'password', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=375,height=250,ScreenX=200, Left=200, ScreenY=200, Top=200');
    return false;
} 

function toggleNav(theObject) {
	if (theObject.className == 'nav_on') {
		theObject.className = 'nav_off';
	} else {
		theObject.className = 'nav_on';
	}
	return;
}
			
function surfTo(loc) {
	location.href = loc;
	return;
}

window.defaultStatus = document.title;

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 SearchAnimal(frm, obj) {
	if ( typeof obj != "undefined" && typeof frm != "undefined" ) {
		//if ( obj.value != "" ) {
			frm.submit();
		//} else { window.alert("Please choose an Animal type from the list!"); }
	}
}

function Search(frm) {
	frm.submit();
	return false;
}

function OpenEmailWindow(AID, RID, CRID) {
	window.open('/public/DirectoryEmailContact.asp?AID=' + AID + '&RID=' + RID + '&CRID=' + CRID, 'DirectoryEmail', 'scrollbars=no,resizable=yes,width=356,height=440,top=20,left=20');
	return false;
}

//-->
