function framecheck() {
    var parentframe = 'fs-home.asp';
    if (parent.location.href == self.location.href) {
	var current = window.self.location.pathname;
	if (current.indexOf("mu-mid.htm") != -1) { current='mp-service-4.htm'; }
	if (current.indexOf("pg-bottom.asp") != -1) { current='mp-service-4.htm'; }
        window.location.replace (parentframe + '?' + current);
    }
}

function cmdSubmit(oThis) {
    var oForm = oThis //.form;
    var bgcolor = "#FFFF99";
    var IsValid = true;
    var sMsg = "";
    var str;
    if (oForm.tbxName.value == "") { 
       sMsg = sMsg + "\tName\n";
       oForm.tbxName.style.backgroundColor = bgcolor; 
       IsValid = false;
    }
    if (oForm.tbxEmail.value == "" || oForm.tbxEmail.value.indexOf('@') == -1) { 
       sMsg = sMsg + "\tEmail\n";
       oForm.tbxEmail.style.backgroundColor = bgcolor; 
       IsValid = false;
    } else {
	str = oForm.tbxEmail.value;
	if (!(str.indexOf(".") > 2) && (str.indexOf("@") > 0)) {
            sMsg = sMsg + "\tEmail\n";
            oForm.tbxEmail.style.backgroundColor = bgcolor; 
            IsValid = false;
        }
    }
    if (oForm.tbxPhone.value == "") { 
       sMsg = sMsg + "\tPhone\n";
       oForm.tbxPhone.style.backgroundColor = bgcolor; 
       IsValid = false;
    }
    if (IsValid == false) {    
	//var oMsg = document.getElementById("idMsg");
	//oMsg.innerHTML = "The fields in yellow are required."
        alert("The fields in yellow are required:\n\n" + sMsg, "Title");
        return false;
    }
    return true;
}
 

