function check_zip_code_field(cnt,zip){var c_code;var zip_error=false;if(!zip||zip.value=="")
return true;c_code='';if(cnt){if((cnt.options.length>0)&&(cnt.selectedIndex<cnt.options.length)){c_code=cnt.options[cnt.selectedIndex].value;}}
if(window.check_zip_code_rules&&isset(check_zip_code_rules[c_code])){var rules=check_zip_code_rules[c_code];if(isset(rules.lens)&&!isset(rules.lens[zip.value.length]))
zip_error=true;if(isset(rules.re)&&zip.value.search(rules.re)!=-1)
zip_error=true;if(zip_error){if(rules.error&&rules.error.length>0)
alert(rules.error);zip.focus();return false;}}
return!zip_error;}
function check_zip_code(){return check_zip_code_field(document.forms["registerform"].b_country,document.forms["registerform"].b_zipcode)&&check_zip_code_field(document.forms["registerform"].s_country,document.forms["registerform"].s_zipcode);}