function validity(event){selectBox=document.getElementById("select2");textBox=document.getElementById("id_champ_research");if(selectBox.value=="K"){if(selectBox.value.length<3&&selectBox.value.length>7){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidLenghtForCodeK" />';warning(event);return false;}if(isNaN(selectBox.value)){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidIntegerChain" />';warning(event);return false;}return true;}else{if(selectBox.value=="S"){if(selectBox.value.length<7&&selectBox.value.length>8){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidLenghtForCodeS" />';warning(event);}if(isNaN(selectBox.value)){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidIntegerChain" />';warning(event);return false;}return true;}else{if(selectBox.value=="N"){if(selectBox.value.length<3&&selectBox.value.length>6){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidLenghtForCodeN" />';warning(event);}if(isNaN(selectBox.value)){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidIntegerChain" />';warning(event);return false;}}else{if(selectBox.value=="A"||selectBox.value=="D"){if(selectBox.value.length<2&&selectBox.value.length>4){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidLenghtForCodeAD" />';warning(event);}if(isNaN(selectBox.value)){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidIntegerChain" />';warning(event);return false;}}else{if(selectBox.value=="V"){if(selectBox.value.length<8&&selectBox.value.length>9){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidLenghtForCodeV" />';warning(event);}if(isNaN(selectBox.value)){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidIntegerChain" />';warning(event);return false;}}else{if(selectBox.value=="H"){if(selectBox.value.length<3&&selectBox.value.length>6){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidLenghtForCodeH" />';warning(event);}if(isNaN(selectBox.value)){document.getElementById("message").innerHTML='<i18n:message bundle="${message}" key="marketingview_marketingInformation_warnings_notValidIntegerChain" />';warning(event);return false;}}}}}}}}function warning(event){var event=new Event(event);event.preventDefault();TB_show("test","#TB_inline?height=300&width=300&inlineId=message","");return false;}function changePortal(suffix,prefix){window.location="http://"+prefix+suffix;}
