﻿function CheckInscription() {
	if (!RM_checkform(document.giveaways,
"email","email","Email 格式不正確",
//"email1","regex-^(\\w+([-.]\\w)*)+$","Email 格式不正確",
//"email2","regex-^\\w+(([-]\\w+)*[.]\\w{2,})+$","Email 格式不正確",
"firstname","filled","請填入您的姓氏.",
"firstname","alpha","請填入您的姓氏.",
"lastname","filled","請填入您的名字.",
"lastname","alpha","請填入您的名字.",
//"socialid","filled","請填入您的身分證.",
//"password","filled","請填入密碼.",
//"password2","filled","請填入確認密碼.",
//"password2","equal-password","抱歉~您輸入的密碼與確認密碼不符.",
"city","selected","請選擇居住縣市." ,
"county","selected","請選擇居住鄉鎮." ,
"address1","filled","請選填入地址." ,
"daytimephone_area","numeric","電話只能輸入數字哦.",
"daytimephone_number","numeric","電話只能輸入數字哦.",
"mobilephone","numeric","電話只能輸入數字哦.",
"birthdayyear","selected","請選擇您的出生年份." ,
"birthdaymonth","selected","請選擇您的出生月份." ,
"birthdayday","selected","請選擇您的出生日."
))
	return false;
	/*
	var prods=Array ("mascaras","fards","rouges","vernis","fonds","poudres");
	for (pr=0;pr<prods.length;pr++) {
		if (!RM_checkform(document.inscription,
			"maquillage12_"+prods[pr],"selected","Veuillez sélectionner le(s) nombre(s) de produits achetés.",
			"maquillage12_"+prods[pr]+"_gemey","selected","Veuillez sélectionner le(s) nombre(s) de produits achetés."))
		return false;
	}
	*/
	
	
	return true;
}


function InvalidCountry() {
	with (document.giveaways)
	if ((countryid.value != "198") && (countryid.value != "88")) {
		alert("Entrants to the draw  must be resident in the UK or Ireland!");
		return true;
	}
	return true;
}	
