
/* mouseover effect */
	if (document.images) {

            imgon = new Image();      
            imgon.src = "images3/arrow_maroon.gif"; 
            img2on = new Image();      
            img2on.src = "images2/arrow_sm_maroon.gif";

            imgoff = new Image();      
            imgoff.src = "images3/arrow_ltyellow.gif"; 
            img2off = new Image();      
            img2off.src = "images2/arrow_sm_ltyellow.gif";
      }

function simgOn(imgName) {

        if (document.images) {
            document[imgName].src = eval("img" + "on.src");
        }
}

function simgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval("img" + "off.src");
        }
}

function s2imgOn(imgName) {

        if (document.images) {
            document[imgName].src = eval("img2" + "on.src");
        }
}

function s2imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval("img2" + "off.src");
        }
}

/* with self-close */

		function openflash() {
			open("qtour_v2/main.html","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=630,height=470");
		}


/* popup window for password */
		function popPassword() {
			open("forgetpasswd.jsp","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=350,height=380");
		}
		
/* popup */
		function popTerms() {
			open("terms.html","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=no,width=505,height=500");
		}

/* demo */

		function popDemo() {
						
open("democourse/popdemo.html","richpogi","toolbar=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=350,height=305");
		}

		function checkForm() {
			if (document.myForm.username.value == "") {
				alert("Please enter your Username.");
				document.myForm.username.focus();
				return false;
			}
			if (document.myForm.password.value == "") {
				alert("Please enter your Password.");
				document.myForm.password.focus();
				return false;
			}
			return true;
		}

		function checkForm2() {
			if (document.thisForm.username.value == "") {
				alert("Please enter your Username.");
				document.thisForm.username.focus();
				return false;
			}
			if (document.thisForm.email.value == "") {
				alert("Please enter your Email Address.");
				document.thisForm.email.focus();
				return false;
			}
			return true;
		}


