function submitemail(path, resllr, pv, loc){
    var chk=$('#newsletter:checked');
    if (chk.length!=0){
        if ($('#email').val()!="" && $('#email').val()!="Email Address"){
            window.location=path+"?mail="+$('#email').val()+"&reseller="+resllr+"&pv="+pv+"&loc="+loc;
        } else {
            alert('Please verify your e-mail address');
        }
    } else {
        window.location=path+"?mail="+$('#email').val()+"&reseller="+resllr+"&pv="+pv+"&loc="+loc;
    }
}
function clearfieldvalue(nam, valu){
    if ($('#'+nam).val()==valu){
        $('#'+nam).val('');
    }
}
function setfieldvalue(nam, valu){
    if ($('#'+nam).val()==""){
        $('#'+nam).val(valu);
    }
}
function linktoclick(path, pv, loc){
    window.location=path+"?pv="+pv+"&loc="+loc;
}

