function initValidation(){	//	var last_name = new LiveValidation('last_name',{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('nameVldMsg') });	last_name.add(Validate.Presence,{failureMessage:'必須事項です'});	var first_name = new LiveValidation('first_name',{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('nameVldMsg') });	first_name.add(Validate.Presence,{failureMessage:'必須事項です'});	//	var company = new LiveValidation('company',{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('companyVldMsg') });	company.add(Validate.Presence,{failureMessage:'必須事項です'});	//	var zip = document.getElementById('00N10000000Gvrh');	zip = new LiveValidation(zip,{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('zipVldMsg') });	zip.add(Validate.Presence,{failureMessage:'必須事項です'});	zip.add(Validate.Format,{pattern: /([0-9-]){7,}/,failureMessage:'正しく入力して下さい'});	//	var pref = document.getElementById('00N10000000GvsL');	pref = new LiveValidation(pref,{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('prefVldMsg') });	pref.add(Validate.Exclusion, { within: [' '], failureMessage: "必須事項です"});	//	var city = document.getElementById('00N10000000GvsQ');	city = new LiveValidation(city,{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('cityVldMsg') });	city.add(Validate.Presence,{failureMessage:'必須事項です'});	//	var street = document.getElementById('00N10000000Gvsk');	street = new LiveValidation(street,{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('streetVldMsg') });	street.add(Validate.Presence,{failureMessage:'必須事項です'});	//	var period = document.getElementById('00N10000000GUdR');	period = new LiveValidation(period,{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('periodVldMsg') });	period.add(Validate.Exclusion, { within: [' '], failureMessage: "必須事項です"});	//	var phone = new LiveValidation('phone',{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('phoneVldMsg') });	phone.add(Validate.Presence,{failureMessage:'必須事項です'});	phone.add(Validate.Format,{pattern: /([0-9-]){10,}/,failureMessage:'正しく入力して下さい'});	//	var email = new LiveValidation('email',{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('emailVldMsg') });	email.add(Validate.Presence,{failureMessage:'必須事項です'});	email.add(Validate.Email,{failureMessage:'正しく入力して下さい'});	//	var agreement = document.getElementById('00N10000000Gvt0');	agreement = new LiveValidation(agreement,{ validMessage: 'OK',insertAfterWhatNode:document.getElementById('agreementVldMsg') });	agreement.add(Validate.Acceptance,{failureMessage:'必須事項です'});		// get the form	var form = document.getElementById( 'myForm' );		// make it validate the form on its onsubmit event, and return whether	form.onsubmit = function(e)	{		var areAllValid = LiveValidation.massValidate( [ last_name, first_name, company, zip, pref, city, street,  phone, period, email, agreement ] );		return areAllValid;	}}if(window.addEventListener){	window.addEventListener("load", initValidation, false);}else if(window.attachEvent){	window.attachEvent("onload", initValidation);}