function IsValid(strValue, alertType){
    var error_found = false;
    var form_elements = document.form1.elements;
    for (var i=0; i< document.form1.length; i++){
        var el = form_elements[i];
        if((el.title == "required") && (el.value.length < 1) && !(el.disabled)){
            if(alertType == "alert"){
                new Effect.Highlight(el.id, {startcolor:'#7DAAC4', endcolor:'#ffffff', restorecolor:'#ffff99'});
            }
            else{
                new Effect.Highlight(el.id, {startcolor:'#7DAAC4', endcolor:'#ffffff', restorecolor:'#ffff99'});
            }
            error_found = true;
        }
	else if (el.id == 'OrderCountry') {
		/* If country and othercountry are blank, show error */
		if (el.value.blank() && $('othercountry').value.blank()) {
			new Effect.Highlight(el.id, {startcolor:'#7DAAC4', endcolor:'#ffffff', restorecolor:'#ffff99'});
			error_found = true;
		}
	}
        else if (el.type == 'input' || el.type == 'select') {
            // make sure field is white if it's valid
            $(el.id).setStyle({backgroundColor: '#ffffff'});
        }
    }
    if(error_found) {
        var top = $('wrap');
        top.scrollTo();
        alert('There are errors in this form.  Please recheck your information.');
        return false;
    }
    else {
        return true;
    }
}
