function checkrequired(which, msg){
	var pass=true
	if (document.images){
		for (i=0;i<which.length;i++){
			var tempobj=which.elements[i]
			if (tempobj.name.substring(0,8)=="required"){
				if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
					pass=false
					break
				}
			}
		}
	}
	if (!pass || !document.reg.agree.checked){
		alert(msg)
		return false
	}else{
		return true
	}
}

function CheckCheckBox(frm){
	if(!frm.CheckThis.checked)
   	frm.CheckThis.focus()
	}
function CheckCheckBox5(frm){
	if(!frm.CheckThis2.checked)
   	frm.CheckThis2.focus()
	}
function CheckCheckBox1(frm){
	if(!frm.sStat.checked)
		frm.sStat.focus()
}
function CheckCheckBox2(frm){
	if(!frm.dStat.checked)
	   frm.dStat.focus()
}
function CheckCheckBox3(frm){
	if(!frm.pStat.checked)
	   frm.pStat.focus()
}
function CheckCheckBox4(frm){
	if(!frm.iStat.checked)
	   frm.iStat.focus()
}
function invoiceFunc(){
    if(document.getElementById('invoice').checked == true)
	document.getElementById('invoiceContentId').style.visibility = 'visible'
    else document.getElementById('invoiceContentId').style.visibility = 'hidden'
}
function dinnerFunc(param){
    if( param ) document.getElementById('vegetarianId').style.visibility = 'visible'
    else document.getElementById('vegetarianId').style.visibility = 'hidden'
}
