
function getURL() 
{
	var address=parent.location.href;
	return address;
}

function redirectURL()
{

alert("test");
var address=parent.location.href;

	if (address.indexOf("ukbookexchange.com") != -1) {
		window.location = "indexSchool.php?schoolID=1";
		}
	else if (address.indexOf("uoflbookexchange.com") != -1) {
		window.location = "indexSchool.php?schoolID=2";
		}
	else if (address.indexOf("nkubookexchange.com") != -1) {
		window.location = "indexSchool.php?schoolID=3";
	}
	else if (address.indexOf("ekubookexchange.com") != -1) {
		window.location = "indexSchool.php?schoolID=4";
	}
	else if (address.indexOf("scbookexchange.com") != -1) {
		window.location = "indexSchool.php?schoolID=10";
	}
	
}

function submitSignIn()
{
	
	passVal1 = checkRequired("*", "");


	if(passVal1)
	{//actions if it passes validation
		formToSubmit = document.getElementById("signin");
		return true;
		//formToSubmit.submit();
	}
	return false;

}
