	function Init() {
		// Call this function when page loads

		// Look for a stored cookie with user login information
		GetCookie();

		// First check for proxy and set form value
		document.joinform.proxy.value = document.hostform.proxy.value = get_proxy();		// Test for proxy using functions provided by proxy.asp ** This is critical

		// Configure your service parameters here
		document.joinform.cust.value = document.hostform.cust.value= "VOD";	// Specify the service provider code
		document.joinform.brand.value = document.hostform.brand.value= "VCallQuickMeeting";	// Specify the brand to be used
		document.hostform.action= "https://www.conferenceservers.com/webagent/webagent.asp?";		// This is the address where form will be posted
		document.joinform.action= "https://www.conferenceservers.com/meetme/meetme.asp?";				// This is the address where form will be posted

		// Define whether form fields are required or optional
		document.joinform.code.required= true;
		document.joinform.fname.required= true;
		document.joinform.comp.required= false;
		document.joinform.email.required= false;
		document.hostform.UserName.required= true;
		document.hostform.Password.required= true;
		document.hostform.fname.required= true;
		document.hostform.comp.required= false;
		document.hostform.email.required= false;

		var sSchedId = GetQueryString()["schedid"];
		if (sSchedId)
		{
			document.joinform.code.value = sSchedId;
			if (sSchedId.indexOf('s-') == 0)
				document.hostform.Password.value = sSchedId;
			document.hostform.mode.value = "scheduled";
		}

		//document.joinform.code.focus();	// Set cursor focus to the first field to be filled in on the form
	}

	function JoinConference()
	{
		// Optionally do some form validation here before submitting to the server
		// Remember to change the text strings to match your terminology

		var errString = "";
		if ((document.joinform.code.value == "") && (document.joinform.code.required == true)) {
			errString += "     - Enter the Access Code provided by your host\n";
		}
		if ((document.joinform.fname.value == "") && (document.joinform.fname.required == true)) {
			errString += "     - Provide your name\n";
		}
		if ((document.joinform.comp.value == "") && (document.joinform.comp.required == true)) {
			errString += "     - Provide your company name\n";
		}
		if ((document.joinform.email.value == "") && (document.joinform.email.required == true)) {
			errString += "     - Provide your email address\n";
		}
		if (errString != "") {
			errString = "Please make the following changes before clicking the LOG IN button:\n\n" + errString;
			alert(errString);
			document.joinform.code.focus();
			return false;
		}
		else {
			// Everything looks good -- return value "true" to the form so it is submitted
			SetCookie();
			return true;
		}
	}

	function HostConference() {
		// Optionally do some form validation here before submitting to the server
		// Remember to change the text strings to match your terminology

		var errString = "";

		if ((document.hostform.UserName.value == "") && (document.hostform.UserName.required == true)) {
			errString += "     - Enter the Subscriber ID\n";
		}
		if ((document.hostform.Password.value == "") && (document.hostform.Password.required == true)) {
			errString += "     - Enter the Password\n";
		}
		if ((document.hostform.fname.value == "") && (document.hostform.fname.required == true)) {
			errString += "     - Provide your name\n";
		}
		if ((document.hostform.comp.value == "") && (document.hostform.comp.required == true)) {
			errString += "     - Provide your company name\n";
		}
		if ((document.hostform.email.value == "") && (document.hostform.email.required == true)) {
			errString += "     - Provide your email address\n";
		}
		if (errString != "") {
			errString = "Please make the following changes before clicking the LOG IN button:\n\n" + errString;
			alert(errString);
			document.hostform.UserName.focus();
			return false;
		}
		else {
			// Everything looks good -- return value "true" to the form so it is submitted
			SetCookie();
			return true;
		}
	}

	function GetCookie(){
		if (document.cookie == "") return false;
		var wholeCookie = unescape(document.cookie);

		if (wholeCookie.indexOf("wipCookie") != -1)
		{
			var smallCookie = wholeCookie.split(";");
			var wipCookie, i;
			for (i=0; i<smallCookie.length; i++){
				var temp = smallCookie[i].indexOf("wipCookie");
				if (temp != -1) wipCookie = smallCookie[i];
			}
			wipCookie = wipCookie.substring(11, wipCookie.length); // Remove the "wipcookie=" prefix from the string
			var cookieValue = wipCookie.split("&");
			for (i=0; i<7; i++){
				var currentValue = cookieValue[i];
				currentValue = currentValue.split("=");
				currentValue = currentValue[1];
				cookieValue[i] = currentValue;
			}
			document.hostform.host_id.value = 		cookieValue[0];
			document.hostform.host_name.value = 	cookieValue[1];
			document.hostform.host_company.value = 	cookieValue[2];
			document.hostform.host_email.value = 	cookieValue[3];

			document.joinform.join_name.value = 	cookieValue[4];
			document.joinform.join_company.value = 	cookieValue[5];
			document.joinform.join_email.value = 	cookieValue[6];
		}
	}

	function SetCookie(){
		var the_date = 		new Date("December 31, 2010");
		var cookieDate = 	the_date.toGMTString();

		var hostID = 		document.hostform.host_id.value;
		var hostName = 		document.hostform.host_name.value;
		var hostCompany = 	document.hostform.host_company.value;
		var hostEmail = 	document.hostform.host_email.value;

		var joinName =		document.joinform.join_name.value;
		var joinCompany =	document.joinform.join_company.value;
		var joinEmail =		document.joinform.join_email.value;

		var wipCookie = "hostID=" + hostID + "&hostName=" + hostName + "&hostCompany=" + hostCompany + "&hostEmail=" + hostEmail;
		wipCookie += "&joinName=" + joinName + "&joinCompany=" + joinCompany + "&joinEmail=" + joinEmail;

		wipCookie = "wipCookie=" + escape(wipCookie);
		wipCookie += ";Expires=" + cookieDate + ";Path=/" + ";Domain=conferenceservers.com";

		document.cookie = wipCookie;
	}
