﻿
//function disablepostonfirstclick(post, Com, Name, Email, REmail) {
//    debugger;  
//    var lnkpost, txtCom, txtName, txtEmail, REVEmail;
//    lnkpost = document.getElementById(post);
//    txtCom = document.getElementById(Com);
//    txtName = document.getElementById(Name);
//    txtEmail = document.getElementById(Email);
//    REVEmail  = document.getElementById(REmail);
//    
//    if(txtName.value!='' && txtCom.value!='' && txtEmail.value!='' && REVEmail.isvalid==true)
//    {
//       lnkpost.style.visibility='hidden';
//       lnkpost.disabled = true;
//       
//    }
//}
function disableOnSubmit(target, Com, Name, Email, REmail, strPostMsg) {
       var txtCom, txtName, txtEmail, REVEmail,strPleasewait;
    txtCom = document.getElementById(Com);
    txtName = document.getElementById(Name);
    txtEmail = document.getElementById(Email);
    REVEmail = document.getElementById(REmail);
   
    if (txtName.value != '' && txtCom.value != '' && txtEmail.value != '' && REVEmail.isvalid == true) {
        target.value = 'Please wait...';
        if (!window.jqsDCCRnC)
            jqsDCCRnC = jQuery.noConflict();
        jqsDCCRnC(target).hide().after('<span CssClass="prc_commentpostingpanelcommentsectionlink">'+strPostMsg+'</span>');
        return true;
    }
    else
        return false;
}
function hide(obj)
{
    obj.style.visibility="hidden";
}
function show(obj)
{
    obj.style.visibility="visible";
}
function scrolltopostreply()
{
    var row2 = document.getElementById("rowPost");
	row2.scrollIntoView();
    row2.focus();
	
}
function scrolltopost()
{
    var row2 = document.getElementById("rowPost");
    row2.scrollIntoView();
    row2.focus();
    
}



