if (top.location != location) {
    top.location.href = document.location.href ;
}

function clearContent(oObj, vText) {
	if(oObj.value == vText) {
		oObj.value = "";
	}
}

function insertContent(oObj, vText) {
	if(oObj.value == "") {
		oObj.value = vText;
	}
}

function ValidEmail(vEmail) {
	if(vEmail.match(/^(([\-\w]+)\.?){0,}([\-\w]+)@(([\-\w]+)\.?)+\.[a-zA-Z]{2,4}$/)) {
		return true;
	} else {
		return false;
	}
}

function checkForm(oForm) {
	if(oForm.elements['fullname'].value == VARS['fullname'] || oForm.elements['fullname'].value.length == 0) {
		alert(VARS['emptyname']);
		
		return false;
	}
	
	if(!ValidEmail(oForm.elements['email'].value)) {
		alert(VARS['invalidemail']);
		
		return false;
	}
	
	return true;
}