<!------>
function renew_products(){
    show_overlay();
    var el = $("formlay");
    var form_html = "<h3>Renew<img class='stop' border='0' alt='' src='/images/stop.png' onclick='hidelay()' /></h3>";
    form_html += "<p></p>"; 
    form_html += "<form action='/renew.htm' enctype='multipart/form-data' method='post'><table>";
    form_html += "<tr><td width='30%'><span class='req_input'>*</span>E-mail Address:</td><td><input type='text' size='35' name='email'/></td></tr>";
    form_html += "<tr><td><img src='/app/seccode.php' /></td><td><input type='text' size='35' name='code'/></td></tr>";
    form_html += "<tr><td></td><td><span class='req_input'>*</span>Please enter what you see</td></tr>";
    form_html += "<tr><td></td><td><input type='submit' value='Continue'  style='width:100px;'/></td></tr></table></form>";
    el.innerHTML = form_html;
    el.style.display = "block";
    el.style.top = (document.documentElement.clientHeight-el.offsetHeight)/2+"px";
    el.style.left = (document.documentElement.clientWidth-el.offsetWidth)/2+"px";
    return false;
}

function resend_key(){
    show_overlay();
    var el = $("formlay");
    var form_html = "<h4>Lost your registration key?<img class='stop' border='0' alt='' src='/images/stop.png' onclick='hidelay()' /></h4>";
    form_html += "<p>Enter your e-mail address with which you have ordered our products, and we'll e-mail you your registration key.</p>"; 
    form_html += "<form action='/retrieveregkey.htm' enctype='multipart/form-data' method='post'><table>";
    form_html += "<tr><td width='30%'><span class='req_input'>*</span>E-mail Address:</td><td><input type='text' size='35' name='email'/></td></tr>";
    form_html += "<tr><td></td><td><input type='checkbox' name='noattachment'/>";
    form_html += "Don't email me with attachment";
    form_html += "<br>If your email account cannot receive attachments, please use this option.</td></tr>";
    form_html += "<tr><td></td><td><select style='width: 300px;'name='fab_ver'><option value='6_one' selected='selected'>DVDFab 6.x/7.x (all in one e-mail)</option><option value='6'>DVDFab 6.x/7.x</option>";
    form_html += "<option value='5'>DVDFab 5.x</option><option value='34'>DVDFab 3.x/4.x</option></select></td></tr>";
    form_html += "<tr><td></td><td>For your DVDFab, please select the version number.</td></tr>";
    form_html += "<tr><td><img src='/app/seccode.php' /></td><td><input type='text' size='35' name='code'/></td></tr>";
    form_html += "<tr><td></td><td><span class='req_input'>*</span>Please enter what you see</td></tr>";
    form_html += "<tr><td></td><td><input type='submit' value='retrieve my registration key'/></td></tr></table></form>";
    el.innerHTML = form_html;
    el.style.display = "block";
    el.style.top = (document.documentElement.clientHeight-el.offsetHeight)/2+"px";
    el.style.left = (document.documentElement.clientWidth-el.offsetWidth)/2+"px";
    return false;
}

function sel_type (elm){
    if(elm.addEventListener){
        var tab_show = 'table-row';
    }else{
        var tab_show = 'block';
    }
    $('f_message_6').style.display = 'none';
    $('f_message').style.display = tab_show;
    var locat_host = window.location.host;
    if(elm.value == '1'){
        window.location = "http://"+locat_host+"/contact.htm?type=1";
    }else if(elm.value == '5'){
        window.location = "http://"+locat_host+"/contact.htm?type=5";
    }
    if(elm.value == '6'){
        $('f_message').style.display = 'none';
        $('f_message_6').style.display = tab_show;
    }
}
function contact_us(){
    var el = $("formlay");
    show_overlay();
    var form_html = "<h4>Contact<img class='stop' border='0' alt='' src='/images/stop.png' onclick='hidelay()' /></h4><p>Please use our contact form below. For more support result, please completely fill out the form. Required fields are marked with an asterisk (*).<br>Please write to us in English, thank you.</p>";
    form_html += "<form action='/contact.htm' enctype='multipart/form-data' method='post'><table>";
    form_html += "<tr><td width='30%'><span class='req_input'>*</span>Problem Type:</td><td><select style='width: 300px;' name='type' onchange='sel_type(this)'>";
    form_html += "<option value='2'>Purchase Problem</option><option value='1'>Technical Support</option><option value='5'>Registration Problem</option>";
    form_html += "<option value='6'>Change E-mail Problem</option><option value='4'>Business Issue</option><option value='7'>Compliant Issue</option></select></td></tr>";
    form_html += "<tr><td><span class='req_input'>*</span>Your full name:</td><td><input type='text' size='35' name='name'/></td></tr>";  
    form_html += "<tr><td><span class='req_input'>*</span>Your e-mail address:</td><td><input type='text' size='35' name='email'/></td></tr>";
    form_html += "<tr><td><span class='req_input'>*</span>Subject:</td><td><input type='text' size='35' name='subject'/></td></tr>";
    form_html += "<tr id='f_message_6' style='display:none'><td><span class='req_input'>*</span>Your Message (Please offer us your old email, order number, registered name):</td><td><textarea style='width: 300px;height:100px' name='message_6'></textarea></td></tr>";
    form_html += "<tr id='f_message'><td><span class='req_input'>*</span>Your Message:</td><td><textarea id='questions' style='width: 300px;height:100px' name='questions'></textarea></td></tr>";
    form_html += "<tr><td><img src='/app/seccode.php' /></td><td><input type='text' size='35' name='code'/></td></tr>";
    form_html += "<tr><td></td><td><span class='req_input'>*</span>Please enter what you see</td></tr>";
    form_html += "<tr><td></td><td><input type='submit' value='Send' style='width:100px;'/></td></tr></table></form>";
    el.innerHTML = form_html;
    el.style.display = "block";
    el.style.top = (document.documentElement.clientHeight-el.offsetHeight)/2+"px";
    el.style.left = (document.documentElement.clientWidth-el.offsetWidth)/2+"px";
    return false;
}

function change_email(){
    var el = $("formlay");
    show_overlay();
    var form_html = "<h4>Change Email<img class='stop' border='0' alt='' src='/images/stop.png' onclick='hidelay()' /></h4><p>E-mail Address Changed?<br>To keep your address current, use the contact form below for e-mail address change requests. </p>";
    form_html += "<form action='/changemail.htm?a=req_v' enctype='multipart/form-data' method='post'><table>";
    form_html += "<tr><td width='30%'><span class='req_input'>*</span>Old email:</td><td><input type='text' size='35' name='old_email'/></td></tr>";
    form_html += "<tr><td><span class='req_input'>*</span>New email:</td><td><input type='text' size='35' name='new_email'/></td></tr>";
    form_html += "<tr><td><img src='/app/seccode.php' /></td><td><input type='text' size='35' name='code'/></td></tr>";
    form_html += "<tr><td></td><td><span class='req_input'>*</span>Please enter what you see</td></tr>";
    form_html += "<tr><td></td><td><input type='submit' value='Send' style='width:100px;'/></td></tr></table></form>";
    el.innerHTML = form_html;
    el.style.display = "block";
    el.style.top = (document.documentElement.clientHeight-el.offsetHeight)/2+'px';
    el.style.left = (document.documentElement.clientWidth-el.offsetWidth)/2+"px";
    return false;
}
<!------>
