<!--
var StrInitialMsg="Alert !!! Check the following fields\n---------------------------------------------------"
var strEnd="\n---------------------------------------------------"
var StrVal="";
val=0;
//************************************************************
//To Check Space on text box
function chkSpace(txtfield){
	var i,j,txtval;
	j=0;
		txtfield=eval(txtfield)
		txtval=txtfield.value;
		for(i=0;i<txtval.length;i++){
			j++
		    if(txtval.substr(i,1)!=" ")
	    	break;
	    }

		txtval=txtval.substr(j-1,txtval.length);
		if(txtval==" ")
			txtval="";
			txtfield.value=txtval;
			return(txtval);
}
//************************************************************
function goNext(goNextTo)
{
 if(event.keyCode==13)
 eval(goNextTo).focus();
}
//************************************************************
function checkEnter(funName)
{
 if(event.keyCode==13)
 eval(funName);
}
//************************************************************
function OnlyNumeric(valDel)
{
   if(isNaN(eval(valDel).value)==true || eval(valDel).value=="")
   {
 	alert("Enter Only Numeric Value!!!");
	eval(valDel).value=0;
 	eval(valDel).focus();
  }
}

//************************************************************
function postdata(val1)
 {
	document.frm.method="post";
	document.frm.action=val1;
	document.frm.submit();
 }
//************************************************************ 
  function checkEmail()
  	{
  	var strEmail, strError, countAtRate, countDot, i;
  	var checkAtRate, checkDot;
  	var ValidChars,CountValidChars;
  	ValidChars="abcdefghijklmnopqrstuvwxyz0123456789_.@ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
  	strEmail = checkEmail.arguments[0];
  	countAtRate=0;
  	countDot=0;
  	CountValidChars=0;
  	if (strEmail.length >= 7)
  		{
  		for(i=0;i<strEmail.length;i++)
  			{
  			if(strEmail.charAt(i)=="@")
  				countAtRate++;
  			if(strEmail.charAt(i)==".")
  				countDot++;
  			CountValidChars=0;
  			for(j=0;j<ValidChars.length;j++)
  				{
  				if(strEmail.charAt(i)==ValidChars.charAt(j))
  					{
  					CountValidChars++;
  					}
  				}
  			if(CountValidChars==0)
  				{
  				strError=0;
  				break;
  				}
  			}
  		}
  	checkAtRate=strEmail.indexOf("@",1);
  	checkDot=strEmail.indexOf(".",1);
  	for(i=1;i<countDot;i++)
  		checkDot=strEmail.indexOf(".",checkDot+1);
  	if(countAtRate==1 && countDot > 0 && strEmail.length >=7 && strError != 0)
  		strError=1;
  	else
  		strError=0;
  	if(checkDot>=strEmail.length-2)
  		strError=0;
  	if(strEmail.charAt(0)=="@" || strEmail.charAt(strEmail.length-1)=="@")
  		strError=0;
  	if(strEmail.charAt(0)=="." || strEmail.charAt(strEmail.length-1)==".")
  		strError=0;
  	if(checkDot < checkAtRate)
  		strError=0;
 
  	return strError;
 }
//************************************************************
function CheckAll_Grp()
{
var jj=document.frm.HRecCount.value;
StrVal="";
if (jj=="")
	jj=0;

for(i=1;i<=jj;i++)
  {
	 StrVal=eval("document.frm.chk"+i);
	if(document.frm.chkall.checked==true)
	 	StrVal.checked=true;
	 else
	 	StrVal.checked=false;
  }
}
//************************************************************
function IndividualCheck_Grp()
{
var counter=0;
var jj=document.frm.HRecCount.value;
StrVal="";
if (jj=="")
	jj=0;

for(i=1;i<=jj;i++)
  {
	 StrVal=eval("document.frm.chk"+i);
	 if(StrVal.checked==true)
		counter=counter+1;
  }
if(counter==Number(jj))
	document.frm.chkall.checked=true;
else
	document.frm.chkall.checked=false;
}

function CheckAll()
{
var jj=document.frm.HRecCount.value;
if (jj=="")
	jj=0;
for(i=0;i<jj;i++)
  {
	 if(jj==1)
	  {
			StrVal=eval("document.frm.chk");
		}
	 else
		StrVal=eval("document.frm.chk["+i+"]");
	 if(document.frm.chkall.checked==true)
		StrVal.checked=true;
	 else
		StrVal.checked=false;
  }
}

//************************************************************
function IndividualCheck()
{
var counter=0;
var jj=document.frm.HRecCount.value;
if (jj=="")
	jj=0;

for(i=0;i<jj;i++)
  {
	 if(jj==1)
	 {
	    StrVal=eval("document.frm.chk");
    }
	 else
		StrVal=eval("document.frm.chk["+i+"]");
	 if(StrVal.checked==true)
		counter=counter+1;
  }
if(counter==Number(jj))
	document.frm.chkall.checked=true;
else
	document.frm.chkall.checked=false;
}
//************************************************************

function bookmark(){
var url="http://www.cbfe.com.np";
var title="CBFE - Computer Based Financila Engineering";
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


//************************************************************

function postSearch(frmVal,args1)
 {

 	var g=eval(frmVal);
 	if (g.srh.value.length>2)
 	{
 		g.method="get";
		g.action="search.asp";
		g.submit();
		if(postSearch.arguments[1]=="")	return true;
 	}
 	else
 	{

 	 alert("Enter text of at least three characters");
	 if(postSearch.arguments[1]=="") return false;

	}

 }

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function send_feedback()
{
	var strError="";
	
	if(chkSpace(document.frm.firstname)=="")
		strError=strError+"\nEnter firstname";

	if(chkSpace(document.frm.lastname)=="")
		strError=strError+"\nEnter lastname";
	
	if (document.frm.e_mail.value=="" || checkEmail(document.frm.e_mail.value) == 0)
		strError=strError+"\nEnter valid email";

	if(document.frm.cmbcountry.options[document.frm.cmbcountry.selectedIndex].value=="")
		strError=strError+"\nSelect country";		

	if(document.frm.cmbcategory.options[document.frm.cmbcategory.selectedIndex].value=="")
		strError=strError+"\nSelect category";		

	if(chkSpace(document.frm.subject)=="")
		strError=strError+"\nEnter subject";


	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="contactus_save.asp";
		 document.frm.submit();
		}
		
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function submit_newsletter()
{
	var strError="";
	
	if(chkSpace(document.frm.firstname)=="")
		strError=strError+"\nEnter firstname";

	if(chkSpace(document.frm.lastname)=="")
		strError=strError+"\nEnter lastname";
	
	if (document.frm.e_mail.value=="" || checkEmail(document.frm.e_mail.value) == 0)
		strError=strError+"\nEnter valid email";

	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="newsletter_save.asp?mode=submit";
		 document.frm.submit();
		}
		
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function unsubmit_newsletter()
{
	var strError="";
	
	if (document.frm.e_mail_un.value=="" || checkEmail(document.frm.e_mail_un.value) == 0)
		strError=strError+"\nEnter valid email";

	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="newsletter_save.asp?mode=unsubmit";
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function submit_refer()
{
	var strError="";
	
	if(chkSpace(document.frm.friend_name)=="")
		strError=strError+"\nEnter friend's name";

	if (document.frm.friend_email.value=="" || checkEmail(document.frm.friend_email.value) == 0)
		strError=strError+"\nEnter valid friend email";

	if(chkSpace(document.frm.your_name)=="")
		strError=strError+"\nEnter your name";

	if (document.frm.your_email.value=="" || checkEmail(document.frm.your_email.value) == 0)
		strError=strError+"\nEnter valid your email";

	if(chkSpace(document.frm.subject)=="")
		strError=strError+"\nEnter subject";
	
	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="refer_save.asp?mode=submit";
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function submit_resume()
{
	var strError="";
	
	if(chkSpace(document.frm.txtfullname)=="")
		strError=strError+"\nEnter full name";
	
	if(chkSpace(document.frm.txtaddress1)=="")
		strError=strError+"\nEnter Address";
	
	if(chkSpace(document.frm.txtcity)=="")
		strError=strError+"\nEnter city";
	
	if(chkSpace(document.frm.txtstate)=="")
		strError=strError+"\nEnter state";
	
	if(document.frm.cmbcountry.options[document.frm.cmbcountry.selectedIndex].value=="")	
		strError=strError+"\nSelect country";
	
	if (document.frm.txtemail.value=="" || checkEmail(document.frm.txtemail.value) == 0)
		strError=strError+"\nEnter valid email";
	
	if(document.frm.cmbcareerfield.options[document.frm.cmbcareerfield.selectedIndex].value=="")	
		strError=strError+"\nSelect career field";
	
	if(chkSpace(document.frm.txtfirstchoice)=="")
		strError=strError+"\nEnter first choice";
	
	if(chkSpace(document.frm.txtyearexperience)=="")
		strError=strError+"\nEnter years of experience";

	if(chkSpace(document.frm.txtsalaryunit)=="")
		strError=strError+"\nEnter currency unit";

	if(chkSpace(document.frm.txtminsalary)=="")
		strError=strError+"\nEnter minimum salary required";

	if(chkSpace(document.frm.txtskills)=="")
		strError=strError+"\nEnter skills summary";

	if(chkSpace(document.frm.txtusername)=="")
		strError=strError+"\nEnter username";

	if(chkSpace(document.frm.txtpassword)=="" || chkSpace(document.frm.txtpassword).length<5)
		strError=strError+"\nEnter at least 5 digit password";

	if(chkSpace(document.frm.txtconpassword)=="")
		strError=strError+"\nEnter confirm password";
	if(chkSpace(document.frm.txtpassword)!="" && chkSpace(document.frm.txtconpassword)!="") 
	{
		if(document.frm.txtpassword.value!=document.frm.txtconpassword.value)
			strError=strError+"\nEnter same confirm password";
	}		
	
	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		if(confirm("Are you sure to post your resume?")==true)
		 {
			 document.frm.method="post";
			 document.frm.action="career_save.asp?mode=submit";
			 document.frm.submit();
		 
		 }
		}
		
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function submit_job_search(submit_job_search)
{
	var strError="";
	
	if(document.frm.job_category.options[document.frm.job_category.selectedIndex].value=="" && chkSpace(document.frm.organization)=="" && chkSpace(document.frm.location)=="" && document.frm.country.options[document.frm.country.selectedIndex].value=="")	
		strError=strError+"\nEnter any text or select any category";
	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action=submit_job_search;
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function apply_now()
{
	var strError="";
	
	if(chkSpace(document.frm.txt_job_username)=="")
		strError=strError+"\nEnter username";

	if(chkSpace(document.frm.txt_job_password)=="")
		strError=strError+"\nEnter password";

	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="career_save.asp?mode=jobsubmit";
		 document.frm.submit();
		}
		
}


//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function submit_survay()
{
	var strError="";
	
	if(chkSpace(document.frm.org_name)=="")
		strError=strError+"\nEnter organization's name";

	if(chkSpace(document.frm.org_add)=="")
		strError=strError+"\nEnter organization's address";

	if(chkSpace(document.frm.org_contact_person)=="")
		strError=strError+"\nEnter contact person";
	
	if(chkSpace(document.frm.no_of_partners)!=""){
		if(isNaN(document.frm.no_of_partners.value)==true)
		  strError=strError+"\nEnter only numeric value in No. of partners";
		}
	
	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		if(confirm("Are you sure to post this survey?")==true)
		 {
			 document.frm.method="post";
			 document.frm.action="research_save.asp?mode=submit";
			 document.frm.submit();
		 
		 }
		}
		
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function send_order()
{
	var strError="";
	
	if(chkSpace(document.frm.org)=="")
		strError=strError+"\nEnter organization";

	if(chkSpace(document.frm.org_add)=="")
		strError=strError+"\nEnter address";
	
	if(chkSpace(document.frm.org_phone)=="")
		strError=strError+"\nEnter phone";

	if(chkSpace(document.frm.contact_person)=="")
		strError=strError+"\nEnter contact person";
	
	if (document.frm.e_mail.value=="" || checkEmail(document.frm.e_mail.value) == 0)
		strError=strError+"\nEnter valid email";

	if(document.frm.cmbcountry.options[document.frm.cmbcountry.selectedIndex].value=="")
		strError=strError+"\nSelect country";		

	if(document.frm.cmbcategory.options[document.frm.cmbcategory.selectedIndex].value=="")
		strError=strError+"\nSelect category";		

	if(chkSpace(document.frm.subject)=="")
		strError=strError+"\nEnter subject";


	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="order_save.asp";
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function post_login()
{
	var strError="";
	
	if(chkSpace(document.frm_member.username)=="")
		strError=strError+"\nEnter username";

	if(chkSpace(document.frm_member.pwd)=="")
		strError=strError+"\nEnter password";
	
	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm_member.method="post";
		 document.frm_member.action="check_login.asp";
		 document.frm_member.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function post_changepassword()
{
	var strError="";
	
	if(chkSpace(document.frm.opwd)=="")
		strError=strError+"\nEnter old password";
	
	if(chkSpace(document.frm.npwd)=="")
		strError=strError+"\nEnter new password";

	if(chkSpace(document.frm.cpwd)=="")
		strError=strError+"\nEnter confirm password";

	if(document.frm.npwd.value!=document.frm.cpwd.value)
		strError=strError+"\nEnter same password";


	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="change_password_save.asp?mode=submit";
		 document.frm.submit();
		}
		
}
 //************************************************************
 function add_edit_customer_login() //add edit customer login
 	  {
 	  	var strError="";
 
 	  	if(chkSpace(document.frm.customer_name)=="")
 	 	 	strError=strError+"\nEnter Customer Name";
 
 		if (document.frm.e_mail.value=="" || checkEmail(document.frm.e_mail.value) == 0)
 		 	strError=strError+"\nEnter valid email";

 		if (chkSpace(document.frm.contact_email)!=""){
 			if (checkEmail(document.frm.contact_email.value) == 0)
 		 	strError=strError+"\nEnter valid contact email";
 		 }	

 	  	if(strError!="")
 	  	alert(StrInitialMsg + strError);
 	  	else
 	  		{
 	  		 document.frm.method="post";
 	  		 document.frm.action="my_account_save.asp";
 	  		 document.frm.submit();
 	  		}
 	  }

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function upload_file()
{
	var strError="";
	
	if(chkSpace(document.frm.txtfile)=="")
		strError=strError+"\nSelect ZIP file";
	
	//if(chkSpace(document.frm.txtfile)!="")
	//{
	//		
	//	strError=strError+"\nEnter new password";
	//}

	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{
		 document.frm.method="post";
		 document.frm.action="upload_files_save.asp?mode=submit";
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function send_download(server_path)
{
	var strError="";

	if(chkSpace(document.frm.org)=="")
		strError=strError+"\nEnter organization";

	if(chkSpace(document.frm.org_add)=="")
		strError=strError+"\nEnter address";
	
	if(chkSpace(document.frm.org_phone)=="")
		strError=strError+"\nEnter phone";

	if(chkSpace(document.frm.contact_person)=="")
		strError=strError+"\nEnter contact person";
	
	if (document.frm.e_mail.value=="" || checkEmail(document.frm.e_mail.value) == 0)
		strError=strError+"\nEnter valid email";

	if(document.frm.cmbcountry.options[document.frm.cmbcountry.selectedIndex].value=="")
		strError=strError+"\nSelect country";		

	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{

		
		//var prevWnd=null;
		//prevWnd=window.open("http://www.cbfe.com.np/setup_download/FAMAS_Setup_Demo.zip","setup","width=10,height=10,scrollbars=no,resizable=no,status=0,top=20000,left=20000");
		//prevWnd=window.open("http://localhost/projects/cbfe_web/web/setup_download/FAMAS_Setup_Demo.zip","setup","width=10,height=10,scrollbars=no,resizable=no,status=0,top=20,left=20");
		//prevWnd.document.open();
    		//prevWnd.document.writeln('<html><head><title>Download</title></head><body bgcolor=#ffffff><a href="javascript:window.close()">Close</a></body></html>');
		//prevWnd.document.close();
		//prevWnd.close();
		 
		 window.open(server_path,"setup","width=10,height=10,scrollbars=no,resizable=no,status=0,top=20000,left=20000");
		 document.frm.method="post";
		 document.frm.action="download_demo_save.asp";
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function send_ayq()
{
	var strError="";

	if(chkSpace(document.frm.subject)=="")
		strError=strError+"\nEnter subject";

	if(chkSpace(document.frm.question)=="")
		strError=strError+"\nEnter question";

	if(strError!="")
		alert(StrInitialMsg + strError);
	else
		{

		 document.frm.method="post";
		 document.frm.action="ayq_save.asp";
		 document.frm.submit();
		}
		
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function popup1(val)
{
	window.open(val,"prvwo1","width=650,height=500,menubar=yes,scrollbars=yes,resizable=yes,status=0,top=0,left=0");
}


//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 function add_edit_customer_signup(add_edit_customer_signup) //add edit customer login
 	  {
 	  	var strError="";
 
 	  	if(chkSpace(document.frm.customer_name)=="")
 	 	 	strError=strError+"\nEnter Customer Name";
 
 		if (chkSpace(document.frm.e_mail)=="" || checkEmail(document.frm.e_mail.value) == 0)
 		 	strError=strError+"\nEnter valid email";

 		if (chkSpace(document.frm.contact_email)!=""){
 			if (checkEmail(document.frm.contact_email.value) == 0)
 		 	strError=strError+"\nEnter valid contact email";
 		 }	

 	  	if(chkSpace(document.frm.username)=="")
 	 	 	strError=strError+"\nEnter User Name";
 	  	
 	  	if(chkSpace(document.frm.pwd)=="")
 	 	 	strError=strError+"\nEnter Password";

 	  	if(chkSpace(document.frm.cpwd)=="")
 	 	 	strError=strError+"\nEnter Confirm Password";

 	  	if(document.frm.pwd.value!=document.frm.cpwd.value)
 	 	 	strError=strError+"\nEnter Same Password";
 
 	  	if(chkSpace(document.frm.version_using)=="")
 	 	 	strError=strError+"\nEnter Version";

 	  	if(chkSpace(document.frm.code_id)=="")
 	 	 	strError=strError+"\nEnter Organization ID";
 	  	
 	  	if(chkSpace(document.frm.code_pass)=="")
 	 	 	strError=strError+"\nEnter Registration Code";


 	  	if(strError!="")
 	  	alert(StrInitialMsg + strError);
 	  	else
 	  		{
 	  		 document.frm.method="post";
 	  		 document.frm.action=add_edit_customer_signup;
 	  		 document.frm.submit();
 	  		}
 	  }

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function post_new_subject()
 {
	document.frm.method="post";
	document.frm.action="forum_post.asp";
	document.frm.submit();
 }
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function post_subject()
{
	var strError="";

	if(chkSpace(document.frm.subject)=="")
		strError=strError+"\nEnter subject";

	if(chkSpace(document.frm.txtmessage)=="")
		strError=strError+"\nEnter message";

	if(strError!="")
	alert(StrInitialMsg + strError);
	else
 	{	
 		if(confirm("Are you sure to post this message?")==true)
 		{
		document.frm.method="post";
		document.frm.action="forum_post_save.asp";
		document.frm.submit();
		}
	}	
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function post_new_reply(val)
{
	var val_url="";
	val_url="forum_post_reply.asp?thread="+val
	window.open(val_url,"prvwof","width=650,height=500,scrollbars=yes,resizable=yes,status=0,top=0,left=0");
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function reply_subject()
{
	var strError="";

	if(chkSpace(document.frm.txtmessage)=="")
		strError=strError+"\nEnter reply message";

	if(strError!="")
	alert(StrInitialMsg + strError);
	else
 	{		
		if(confirm("Are you sure to post this reply?")==true)
 		{
 		document.frm.method="post";
		document.frm.action="forum_post_reply_save.asp";
		document.frm.submit();
		}
	}	
}

//-->
