//type 1 //type 2 //type 3 //type 0 var type 0 var isanony false var cansend false var cansendform2 false function reportError(request, ex) if ( «NS ERROR NOT AVAILABLE») return alert(«Request failed n n » » n nPlease try again!») function checkTextEmail() var textEmail (‘textEmail’) if(isValidEmailAddress( )) $(«pasWordBox») ‘none’ $(«form2email»).innerHTML (‘textEmail’).value isanony true type 3 else if( ») $(«pasWordBox») ‘none’ else cansend true $(«ffbEmailError») ‘none’ $(«pasWordBox») ‘block’ isanony false type 1 function checkContent() if($(«emailInputArea») ) $(«addfixcontent») ‘block’ cansend false else $(«ContentInfo»).innerHTML ‘Enter between 20 to 3000 words,English only.’ $(«addfixcontent») ‘none’ cansend true function sendButton() checkContent() if(!cansend) alert(‘ ‘) return if(isanony) // $(«signBox») ‘block’ else if(type 1) // var formObj $(«feedBackform») url «/ » var ajax new ( url, method ‘post’, parameters (formObj), onFailure reportError, onException reportError, onComplete doAskUser ) else alert(‘ ‘) function closeform2() $(«signBox») «none» function refreshCaptcha() var seed ( () 10000) var captchaid (‘captcha’) «/ » seed $(«inner code»).value «» function checkfirstname() if($(«firstnameid»).value ») alert(‘ ‘) cansendform2 false else cansendform2 true function checklastname() if($(«lastnameid»).value ») alert(‘ ‘) cansendform2 false else cansendform2 true function checkcompanyname() if($(«custCompanyName»).value ») alert(‘ ‘) cansendform2 false else cansendform2 true function checkcode() if($(‘inner code’).value ») alert(‘ !’) cansendform2 false else cansendform2 true function sendForm2() if(!checkAddress() (cansendform2 false)) return 0 // var formObj $(«feedBackform») url «/ » var ajax new ( url, method ‘post’, parameters (formObj), onFailure reportError, onException reportError, onComplete doAskAnons ) function doAskAnons(res) if( (0,7) ‘