function isWhitespace(s)
{
   var i;
   for (i = 0; i < s.length; i++)
   {
		// Check that current character isn't whitespace.
		var c = s.charAt(i);
		if(c!=" ")
		return false;
   }
   // All characters are whitespace.
   return true;
}

var dtCh= "/";
var minYear=2000;
var maxYear=2100;

function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		alert("The date format should be : dd/mm/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		alert("Please enter a valid month")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		alert("Please enter a valid day")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		alert("Please enter a valid date")
		return false
	}
return true
}

function emailCheck (emailStr) 
{
var emailPat=/^(.+)@(.+)$/
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
var validChars="\[^\\s" + specialChars + "\]"
var quotedUser="(\"[^\"]*\")"
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
var atom=validChars + '+'
var word="(" + atom + "|" + quotedUser + ")"
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
var matchArray=emailStr.match(emailPat)
if (matchArray==null) {

// alert("The e-mail address appears to be incorrect (check @ and .'s)")
 return false
}
var user=matchArray[1]
var domain=matchArray[2]
 
if (user.match(userPat)==null) {
    // user is not valid
  //  alert("The e-mail address username appears to be incorrect")
    return false
}
 
var IPArray=domain.match(ipDomainPat)
if (IPArray!=null) {
    // this is an IP address
   for (var i=1;i<=4;i++) {
     if (IPArray[i]>255) {
  //       alert("Destination IP address is invalid!")
  return false
     }
    }
    return true
}
 
var atomPat=new RegExp(atom,"g")
var domArr=domain.match(atomPat)
var len=domArr.length
if (domArr[domArr.length-1].length<2 || 
    domArr[domArr.length-1].length>3) {
   // the address must end in a two letter or three letter word.
  // alert("The address must end in a three-letter domain, or two letter country.")
   return false
}

if (len<2) {
   //var errStr="This address is missing a hostname!"
   //alert(errStr)
   return false
}
 
// If we've gotten this far, everything's valid!
return true;
}




function storeenglish(i)
{
	if (frm.englishall.value == "")
	{	
		if (frm.english[i].checked == true)
		{
			if ( frm.englishall.value.search(frm.english[i].value) == -1)
			{
				frm.englishall.value = frm.english[i].value
			}
		}
	}
	else
	{
		if (frm.english[i].checked == true)
		{
			if ( frm.englishall.value.search(frm.english[i].value) == -1)
			{
				frm.englishall.value = frm.englishall.value+","+frm.english[i].value
			}
		}
		else
		{
			if ( frm.englishall.value.search(frm.english[i].value) != -1)
			{
				frm.englishall.value = frm.englishall.value.replace((","+frm.english[i].value),"")
				frm.englishall.value = frm.englishall.value.replace((frm.english[i].value+","),"")
				frm.englishall.value = frm.englishall.value.replace((frm.english[i].value),"")
			}
		}
		
	}
}
function storehindi(i)
{
	if (frm.hindiall.value == "")
	{	
		if (frm.hindi[i].checked == true)
		{
			if ( frm.hindiall.value.search(frm.hindi[i].value) == -1)
			{
				frm.hindiall.value = frm.hindi[i].value
			}
		}
	}
	else
	{
		if (frm.hindi[i].checked == true)
		{
			if ( frm.hindiall.value.search(frm.hindi[i].value) == -1)
			{
				frm.hindiall.value = frm.hindiall.value+","+frm.hindi[i].value
			}
		}
		else
		{
			if ( frm.hindiall.value.search(frm.hindi[i].value) != -1)
			{
				frm.hindiall.value = frm.hindiall.value.replace((","+frm.hindi[i].value),"")
				frm.hindiall.value = frm.hindiall.value.replace((frm.hindi[i].value+","),"")
				frm.hindiall.value = frm.hindiall.value.replace((frm.hindi[i].value),"")
			}
		}
		
	}
	
}
function storeguj(i)
{
	if (frm.gujaratiall.value == "")
	{	
		if (frm.gujarati[i].checked == true)
		{
			if ( frm.gujaratiall.value.search(frm.gujarati[i].value) == -1)
			{
				frm.gujaratiall.value = frm.gujarati[i].value
			}
		}
	}
	else
	{
		if (frm.gujarati[i].checked == true)
		{
			if ( frm.gujaratiall.value.search(frm.gujarati[i].value) == -1)
			{
				frm.gujaratiall.value = frm.gujaratiall.value+","+frm.gujarati[i].value
			}
		}
		else
		{
			if ( frm.gujaratiall.value.search(frm.gujarati[i].value) != -1)
			{
				frm.gujaratiall.value = frm.gujaratiall.value.replace((","+frm.gujarati[i].value),"")
				frm.gujaratiall.value = frm.gujaratiall.value.replace((frm.gujarati[i].value+","),"")
				frm.gujaratiall.value = frm.gujaratiall.value.replace((frm.gujarati[i].value),"")
			}
		}
		
	}
}
function storemar(i)
{
	if (frm.marathiall.value == "")
	{	
		if (frm.marathi[i].checked == true)
		{
			if ( frm.marathiall.value.search(frm.marathi[i].value) == -1)
			{
				frm.marathiall.value = frm.marathi[i].value
			}
		}
	}
	else
	{
		if (frm.marathi[i].checked == true)
		{
			if ( frm.marathiall.value.search(frm.marathi[i].value) == -1)
			{
				frm.marathiall.value = frm.marathiall.value+","+frm.marathi[i].value
			}
		}
		else
		{
			if ( frm.marathiall.value.search(frm.marathi[i].value) != -1)
			{
				frm.marathiall.value = frm.marathiall.value.replace((","+frm.marathi[i].value),"")
				frm.marathiall.value = frm.marathiall.value.replace((frm.marathi[i].value+","),"")
				frm.marathiall.value = frm.marathiall.value.replace((frm.marathi[i].value),"")
			}
		}
		
	}
	
}
function formvalidation()
{

if(frm.txttitle.value=="")
{
	alert("Select Title")
	frm.txttitle.focus()
	return false;
}
if(frm.txtfirstname.value=="")
{
	alert("Enter Firstname")
	frm.txtfirstname.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtfirstname.value))
	{
		alert("First name cannnot contain only space")
		frm.txtfirstname.focus()
		return false;
	}
}


if(frm.txtmiddlename.value!="")
{
	if(isWhitespace(frm.txtmiddlename.value))
	{
		alert("Middle name cannnot contain only space")
		frm.txtmiddlename.focus()
		return false;
	}
}
if(frm.txtlastname.value=="")
{
	alert("Enter Lastname")
	frm.txtlastname.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtlastname.value))
	{
		alert("Last name cannnot contain only space")
		frm.txtlastname.focus()
		return false;
	}
}
if(frm.txtaddress1.value=="")
{
	alert("Enter Address 1")
	frm.txtaddress1.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtaddress1.value))
	{
		alert("Address I cannnot contain only space")
		frm.txtaddress1.focus()
		return false;
	}
}
if(frm.txtaddress2.value!="")
{
	if(isWhitespace(frm.txtaddress2.value))
	{
		alert("Address II cannnot contain only space")
		frm.txtaddress2.focus()
		return false;
	}
}

if(frm.txtcity.value == "")
{
		alert("Select City")
		frm.txtcity.focus()
		return false;
}
if(frm.txtstate.value == "")
{
		alert("Select State")
		frm.txtstate.focus()
		return false;
}

if(frm.txtpincode.value=="")
{
	alert("Enter Pincode Number")
	frm.txtpincode.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtpincode.value))
		{
			alert("Pincode Number cannnot contain only space")
			frm.txtpincode.focus()
			return false;
		}
	if(isNaN(parseInt(frm.txtpincode.value)))
		{
			alert("Pincode Number should be numeric only")
			frm.txtpincode.focus()
			return false;
		}

	if(frm.txtpincode.value.length < 6)
		{
			alert("Invalid Pincode Number")
			frm.txtpincode.focus()
			return false;
		}
}

if(frm.txtstdcode.value=="")
{
			alert("Enter STD Code")
			frm.txtstdcode.focus()
			return false;
}
else
{
	if(isWhitespace(frm.txtstdcode.value))
		{
			alert("Residence STD Code cannnot contain only space")
			frm.txtstdcode.focus()
			return false;
		}
	if(isNaN(parseInt(frm.txtstdcode.value)))
		{
			alert("Residence STD Code Number should be numeric only")
			frm.txtstdcode.focus()
			return false;
		}
		if(frm.txtResno.value == "")
		{
				alert("Enter Residence Number")
				frm.txtResno.focus()
				return false;
		}
		else
		{
		if(frm.txtResno.value!="")
			{
				if(isWhitespace(frm.txtResno.value))
					{
						alert("Residence Number cannnot contain only space")
						frm.txtResno.focus()
						return false;
					}
				if(isNaN(parseInt(frm.txtResno.value)))
					{
						alert("Residence Number should be numeric only")
						frm.txtResno.focus()
						return false;
					}
			}
	}
}

if(frm.txtmobile.value!="")
{
	if(isWhitespace(frm.txtmobile.value))
		{
			alert("Mobile Number cannnot contain only space")
			frm.txtmobile.focus()
			return false;
		}
	if(isNaN(parseInt(frm.txtmobile.value)))
		{
			alert("Mobile Number should be numeric only")
			frm.txtmobile.focus()
			return false;
		}
		
}

if(frm.txtemail1.value =="")
{
	alert("Enter Email id")
	frm.txtemail1.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtemail1.value))
		{
			alert("Primary Email ID cannnot contain only space")
			frm.txtemail1.focus()
			return false;
		}
	if(emailCheck(frm.txtemail1.value)==false)
		{
			alert("Invalid Primary Email ID")
			frm.txtemail1.focus()
			return false;
		}
}

if(frm.txtemail2.value!="")
{
	if(isWhitespace(frm.txtemail2.value))
		{
			alert("Secondary Email ID cannnot contain only space")
			frm.txtemail2.focus()
			return false;
		}
	if(emailCheck(frm.txtemail2.value)== false)
		{
			alert("Invalid Secondary Email ID")
			frm.txtemail2.focus()
			return false;
		}
		
}
if(frm.txtbirthdate.value == "" )
{
		alert("Select Birth Date")
		frm.txtbirthdate.focus()
		return false;	
}
if(frm.txtbirthmonth.value == "" )
{
		alert("Select Birth Month")
		frm.txtbirthmonth.focus()
		return false;	
}
if(frm.txtbirthyear.value == "" )
{
		alert("Select Birth Year")
		frm.txtbirthyear.focus()
		return false;	
}

if(frm.english[0].checked == false && frm.english[1].checked == false && frm.english[2].checked == false)
{
	alert("Select English language - Read, Write, Speck Options")
	frm.english[0].focus()
	return false;
}
if(frm.hindi[0].checked == false && frm.hindi[1].checked == false && frm.hindi[2].checked == false)
{
	alert("Select Hindi language - Read, Write, Speck Options")
	frm.hindi[0].focus()
	return false;
}
if(frm.gujarati[0].checked == false && frm.gujarati[1].checked == false && frm.gujarati[2].checked == false)
{
	alert("Select Gujarati language - Read, Write, Speck Options")
	frm.gujarati[0].focus()
	return false;
}

if (frm.txtotherlang.value != "" )
{
	if(isWhitespace(frm.txtotherlang.value))
		{
			alert("Language cannnot contain only space")
			frm.txtotherlang.focus()
			return false;
		}
}
if(frm.txtxmed.value == "")
{
	alert("Select Medium of Instruction")
	frm.txtxmed.focus()
	return false;
}
if(frm.txtxuni.value == "")
{
	alert("Enter University / Board Name")
	frm.txtxuni.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtxuni.value))
	{
		alert("University / Board Name cannnot contain only space")
		frm.txtxuni.focus()
		return false;
	}
}
if(frm.txtxyear.value=="")
{
	alert("Select Passing Year")
	frm.txtxyear.focus()
	return false;
}
if(frm.txtxgrade.value=="")
{
	alert("Enter Grade")
	frm.txtxgrade.focus()
	return false;
}
else
{
	if(isWhitespace(frm.txtxgrade.value))
	{
		alert("Grade cannnot contain only space")
		frm.txtxgrade.focus()
		return false;
	}
	if(isNaN(parseInt(frm.txtxgrade.value)))
	{
		alert("Grade should be numeric only")
		frm.txtxgrade.focus()
		return false;
	}

}
if(frm.txtxiimed.value == "")
{
	alert("Select Medium of Instruction")
	frm.txtxiimed.focus()
	return false;
}

	if(frm.txtxiiuni.value=="")
	{
		alert("Enter University / Board Name")
		frm.txtxiiuni.focus()
		return false;
	}
	else
	{
		if(isWhitespace(frm.txtxiiuni.value))
		{
			alert("University / Board Name cannnot contain only space")
			frm.txtxiiuni.focus()
			return false;
		}
	}
	if(frm.txtxiiyear.value=="")
	{
		alert("Select Passing Year")
		frm.txtxiiyear.focus()
		return false;
	}
	if(frm.txtxiigrade.value=="")
	{
		alert("Enter Grade")
		frm.txtxiigrade.focus()
		return false;
	}
	else
	{
		if(isWhitespace(frm.txtxiigrade.value))
		{
			alert("Grade cannnot contain only space")
			frm.txtxiigrade.focus()
			return false;
		}
		if(isNaN(parseInt(frm.txtxiigrade.value)))
		{
			alert("Grade should be numeric only")
			frm.txtxiigrade.focus()
			return false;
		}
	}
	if(frm.txtgrdmed.value == "")
	{
		alert("Select Medium of Instruction")
		frm.txtgrdmed.focus()
		return false;
	}
	if(frm.txtgrdqul.value == "")
	{
		alert("Select Qualification")
		frm.txtgrdqul.focus()
		return false;
	}
	if(frm.txtgrduni.value=="")
	{
		alert("Enter University / Board Name")
		frm.txtgrduni.focus()
		return false;
	}
	else
	{
		if(isWhitespace(frm.txtgrduni.value))
		{
			alert("University / Board Name cannnot contain only space")
			frm.txtgrduni.focus()
			return false;
		}
	}
	if(frm.txtgrdyear.value=="")
	{
		alert("Select Passing Year")
		frm.txtgrdyear.focus()
		return false;
	}
	if(frm.txtgrdgrade.value=="")
	{
		alert("Enter Grade")
		frm.txtgrdgrade.focus()
		return false;
	}
	else
	{
		if(isWhitespace(frm.txtgrdgrade.value))
		{
			alert("Grade cannnot contain only space")
			frm.txtgrdgrade.focus()
			return false;
		}
		if(isNaN(parseInt(frm.txtgrdgrade.value)))
		{
			alert("Grade should be numeric only")
			frm.txtgrdgrade.focus()
			return false;
		}
	}

if(frm.txtpgqul.value!="")
{
if (frm.txtpgmed.value == "" )
{
		alert("Select Medium of Instruction")
		frm.txtpgmed.focus()
		return false;
}
if(frm.txtpguni.value!="")
{
	if(isWhitespace(frm.txtpguni.value))
	{
		alert("University / Board Name cannnot contain only space")
		frm.txtpguni.focus()
		return false;
	}
	if(frm.txtpgyear.value=="")
	{
		alert("Select Year")
		frm.txtpgyear.focus()
		return false;
	}
	if(frm.txtpggrade.value=="")
	{
		alert("Enter Grade")
		frm.txtpggrade.focus()
		return false;
	}
else
	{
		if(isWhitespace(frm.txtpggrade.value))
		{
			alert("Grade cannnot contain only space")
			frm.txtpggrade.focus()
			return false;
		}
		if(isNaN(parseInt(frm.txtpggrade.value)))
		{
			alert("Grade should be numeric only")
			frm.txtpggrade.focus()
			return false;
		}

	}
}

}
if(frm.txtotherqul.value!="")
	{
		if (frm.txtpgmed.value == "" )
		{
		alert("Select Medium of Instruction")
		frm.txtpgmed.focus()
		return false;
		}
		if(isWhitespace(frm.txtotherqul.value))
		{
			alert("Qualification cannnot contain only space")
			frm.txtotherqul.focus()
			return false;
		}
		
		if(frm.txtotheruni.value!="")
		{
			if(isWhitespace(frm.txtotheruni.value))
			{
				alert("University Name cannnot contain only space")
				frm.txtotheruni.focus()
				return false;
			}
		}
		if(frm.txtotheryear.value=="all")
		{
				alert("Select Passing Year")
				frm.txtotheryear.focus()
				return false;
		}
		if(frm.txtothergrade.value!="")
		{
			if(isWhitespace(frm.txtothergrade.value))
			{
				alert("Grade cannnot contain only space")
				frm.txtothergrade.focus()
				return false;
			}
			if(isNaN(parseInt(frm.txtothergrade.value)))
			{
				alert("Grade should be numeric only")
				frm.txtothergrade.focus()
				return false;
			}

		}
		
	}

if(frm.txtcompany.value!="")
{
	if(isWhitespace(frm.txtcompany.value))
	{
		alert("Company Name cannnot contain only space")
		frm.txtcompany.focus()
		return false;
	}
	if(frm.txtdesign.value == "")
	{
		alert("Enter Designation")
		frm.txtdesign.focus()
		return false;
	}
	if(isWhitespace(frm.txtdesign.value))
	{
		alert("Designation cannnot contain only space")
		frm.txtdesign.focus()
		return false;
	}
	if(frm.txtjobdesc.value == "")
	{
		alert("Enter Job Description")
		frm.txtjobdesc.focus()
		return false;
	}
	if(isWhitespace(frm.txtjobdesc.value))
	{
		alert("Job Description cannnot contain only space")
		frm.txtjobdesc.focus()
		return false;
	}
	if(frm.txtWorkMonth.value == "0")
	{
		alert("Select Work Month")
		frm.txtWorkMonth.focus()
		return false;
	}
	if(frm.txtworkyear.value == "0")
	{
		alert("Select Work Year")
		frm.txtworkyear.focus()
		return false;
	}
	if(frm.txttotyrexp.value == "0" && frm.txttotmthexp.value == "0")
	{
		alert("Select total years of experience")
		frm.txttotyrexp.focus()
		return false;
	}
	
	if (frm.txtsalary.value == "0.0")
	{
		alert("Enter Present Salary")
		frm.txtsalary.focus()
		return false;
	}
	if (frm.txtsalary.value != "")
	{
		if(isNaN(parseInt(frm.txtsalary.value)))
		{
			alert("Salary should be numeric only")
			frm.txtsalary.focus()
			return false;
		}
		frm.txtsalary.value = parseFloat(frm.txtsalary.value)
	}
}

	if (frm.txtexpcectsal.value == "0.0")
	{
		alert("Enter Expected Salary")
		frm.txtexpcectsal.focus()
		return false;
	}
	if (frm.txtexpcectsal.value != "")
	{
		if(isNaN(parseInt(frm.txtexpcectsal.value)))
		{
			alert("Salary should be numeric only")
			frm.txtexpcectsal.focus()
			return false;
		}
		frm.txtexpcectsal.value = parseFloat(frm.txtexpcectsal.value)
	}

no = frm.AnsNo.value
if (no == 0)
{
	if (frm.controltype.value == "Radio")
	{
		if (frm.radAnswer[0].checked == false  && frm.radAnswer[1].checked == false) 
		{
			alert("Select Options")
			no = no - 1
			frm.radAnswer[0].focus()
			return false;
		}
		
	}
	else
	{
		
		if (frm.Answer.value == "" ) 
			{
				alert("Enter Data")
				frm.Answer.focus()
				return false;
			}
	}
}
else
{
for (j=0;j<=no;j++)
{
	if (frm.controltype[j].value == "Radio")
	{
		flag = 1 
	}
	else 
	{
		flag = 0
	}
}

if (flag =1)
{
	for (i=0;i<=no-1;i++)
	{
	
			if (frm.Answer[i].value == "" ) 
			{
				alert("Enter Data")
				frm.Answer[i].focus()
				return false;
			}
	}
	if (frm.radAnswer[0].checked == false  && frm.radAnswer[1].checked == false) 
		{
			alert("Select Options")
			no = no - 1
			frm.radAnswer[0].focus()
			return false;
		}
}
else 
{
	for(i=0;i<=no;i++)
	{
	
			if (frm.Answer[i].value == "" ) 
			{
				alert("Enter Data")
				frm.Answer[i].focus()
				return false;
			}

	}
}// JavaScript Document
		
}
		
		
if(frm.txtfile.value == "")
{
	
	alert("Select File")
	frm.txtfile.focus()
	return false;
	
}
else
{
	if(isWhitespace(frm.txtfile.value))
	{
	alert("Uploaded File cannnot contain only space")
	frm.txtfile.focus()
	return false;
	}
	
	file = frm.txtfile.value
	files = file.split(".")
			if (files[1] == "Doc" || files[1] == "DOC" || files[1] == "GIF" || files[1] == "doc")
			{
			
			//return true;
			
			}
			else
			{
				alert("Uploade .Doc file only")
				frm.txtfile.focus();
				return false;
			}

}


if (flag =1)
{
	for (i=0;i<=no-1;i++)
	{
			if (frm.Answer[i].value != "" ) 
			{
				if (frm.Qus.value == "" )
				{
					frm.Qus.value = frm.Question[i].value
				}
				else
				{
					frm.Qus.value = frm.Qus.value +"(^)"+frm.Question[i].value 
				}
				frm.Ans.value == ""
				if (frm.Ans.value == "" )
				{
					frm.Ans.value = frm.Answer[i].value
					
				}
				else
				{
					frm.Ans.value = frm.Ans.value +"(^)"+frm.Answer[i].value 
				}
				
			}
	}
	if (frm.radAnswer[0].checked == true) 
		{
			frm.Qus.value = frm.Qus.value +"(^)"+frm.Questionrad.value 
			frm.Ans.value = frm.Ans.value +"(^)"+ "Yes"
		}
	else
		{
			frm.Ans.value = frm.Ans.value.replace(("(^)"+"Yes"),"")
			frm.Ans.value = frm.Ans.value.replace(("Yes"+"(^)"),"")
			frm.Ans.value = frm.Ans.value.replace(("Yes"),"")
			
		}
	 if(frm.radAnswer[1].checked == true)
		{
			frm.Qus.value = frm.Qus.value +"(^)"+frm.Questionrad.value 
			frm.Ans.value = frm.Ans.value +"(^)"+ "No"
		}
	else
		{
			frm.Ans.value = frm.Ans.value.replace(("(^)"+"No"),"")
			frm.Ans.value = frm.Ans.value.replace(("No"+"(^)"),"")
			frm.Ans.value = frm.Ans.value.replace(("No"),"")
			
		}
}
else 
{
	for(i=0;i<=no;i++)
	{
	
			if (frm.Answer[i].value != "" ) 
			{
				if (frm.Qus.value == "" )
				{
					frm.Qus.value = frm.Questionrad.value
				}
				else
				{
					frm.Qus.value = frm.Qus.value +"(^)"+frm.Questionrad.value 
				}
				frm.Ans.value == ""
				if (frm.Ans.value == "" )
				{
					frm.Ans.value = frm.Answer[i].value
				}
				else
				{
					frm.Ans.value = frm.Ans.value +"(^)"+frm.Answer[i].value 
				}
			}

	}
}




}
