var inputLabel = new Array(); inputLabel['name'] = 'Name'; inputLabel['zip'] = 'Zip code'; inputLabel['address'] = 'address'; inputLabel['tel'] = 'Telephone '; inputLabel['mail_address'] = 'mail_address'; inputLabel['company'] = 'Name of company'; inputLabel['type'] = 'Subject of inquiry'; inputLabel['body'] = 'Details of inquiry'; var inputValue = new Array(); inputValue['type'] = new Array(); inputValue['type']['0'] = '็„กใ—'; inputValue['type']['1'] = 'Inquiry'; inputValue['type']['2'] = ' Request for information'; inputValue['type']['3'] = ' Application'; $(function(){ $("[name='name']").attr("rel","null"); $("[name='name']").attr("inputCheck","true"); $("[name='name']").attr("focused","false"); $("[name='zip']").attr("rel","none"); $("[name='zip']").attr("inputCheck","true"); $("[name='zip']").attr("focused","false"); $("[name='address']").attr("rel","none"); $("[name='address']").attr("inputCheck","true"); $("[name='address']").attr("focused","false"); $("[name='tel']").attr("rel","null"); $("[name='tel']").attr("inputCheck","true"); $("[name='tel']").attr("focused","false"); $("[name='mail_address']").attr("rel","null,email"); $("[name='mail_address']").attr("inputCheck","true"); $("[name='mail_address']").attr("focused","false"); $("[name='company']").attr("rel","none"); $("[name='company']").attr("inputCheck","true"); $("[name='company']").attr("focused","false"); $("[name='type']").attr("rel","none"); $("[name='type']").attr("inputCheck","true"); $("[name='type']").attr("focused","false"); $("[name='body']").attr("rel","null"); $("[name='body']").attr("inputCheck","true"); $("[name='body']").attr("focused","false"); });