I would like to set the script below to start on page load so that if the company name has been entered the vat field will automatically show up, could any one give me a hand on this?
//--></script>
<script type="text/javascript"><!--
$('.colorbox').colorbox({
width: 560,
height: 560
});
$("input[name=company]").blur(function() {
if($(this).val().length>0) {
$("#vat").show();
$("#fiscal").hide();
$("#vat").find("input").eq(0).focus();
} else {
$("#vat").hide();
$("#fiscal").show();
$("#fiscal").find("input").eq(0).focus();
}
});
//--></script>