var maxRows;
var SearchFieldName;
var SearchFieldIndex;
var iChars = "!^\\\'|\"<>";

function chkSpecial(fld)
{
	
	var fldName=fld;
	var fldValue=fld.value;
	
		for (var i = 0; i < fldValue.length; i++) 
		{
			
 	 		if (iChars.indexOf(fldValue.charAt(i)) != -1) 
			{
			alert ("Your Text has special characters.'"+fldValue.charAt(i)+"' in '"+fldName.name+"' These are not allowed.\n Please remove it and try again.");
			return false;
			break;
			}
  		}
  		return true;
}

function chkChars(fld)
{	
	var fldValue=fld.value;
	if ( (fldValue).match(/[a-zA-Z\s]/)) 
	{   
		alert ("Your Pincode has characters. \nThese are not allowed.\n Please remove them and try again.");
	       return false;
       }
	
}
function chkNumerics(fld)
{	
	var fldValue=fld.value;
	if ( (fldValue).match(/[^0-9]/)) 
	{   
		alert ("Your Pincode has characters. \nThese are not allowed.\n Please remove them and try again.");
	       return false;
       }
	
}



function Add(varLayoutID,varMode)
{
	
		location.href='DisplayLayout?LayoutId=' + varLayoutID + '&Mode=' + varMode;
	
}


function openLayout(target, param)
{
	frames.parent.frames[target].location.href = param;
}

function validateValue(frmLayout)
{
	
	frm=document.forms[frmLayout];
	outer :
	for (cnt=0;cnt<frm.elements.length;cnt++)
	{
	var res=chkSpecial(frm.elements[cnt]);
	  if(res == false){
	 	return false;
	 	break outer;
	 }
	}
	return true;
}


function onClickSave(btn){
if(confirm("Do you want to Save?")){
var status = validateValue("frmLayout");
if (status == true){
if(document.frmLayout.FieldValidation.value==null)
{
enableFields("frmLayout")
document.frmLayout.Action.value=btn.id;
document.frmLayout.action="PerformAction";
document.frmLayout.target="MainFrame";
document.frmLayout.method = "POST";
document.frmLayout.submit();
}
else
{	
	var strVal=document.frmLayout.FieldValidation.value;
    if(strVal.length>0){
   if(subFieldValidation(document.all("frmLayout")))
   {
	document.frmLayout.FieldValidation.value="";
	enableFields("frmLayout")
	document.frmLayout.Action.value=btn.id;
	
	document.frmLayout.action="PerformAction";
	document.frmLayout.target="MainFrame";
	document.frmLayout.method = "POST";
	document.frmLayout.submit();
   }
   }
else{
	
	enableFields("frmLayout")
	document.frmLayout.Action.value=btn.id;
	document.frmLayout.action="PerformAction";
	document.frmLayout.target="MainFrame";
	document.frmLayout.method = "POST";
	document.frmLayout.submit();
}
}
}
}
}
function enableFields(frmName)
{
	frm=document.forms[frmName];
	for (cnt=0;cnt<frm.elements.length;cnt++)
	{
		if (frm.elements[cnt].disabled)
			frm.elements[cnt].disabled = false
	}
}
function subFieldValidation(formObject) {
/* Validate fields on a form */
/* first get the fields to be validated. */
   var form_name = "";
   var sel = 0;
   
   var fieldList = formObject.FieldValidation.value;
   var valT, valList ;
   var valType;
   var i=0;
   //split the passed string to get the  validation type and corrosponding string 
   valT  = fieldList.split(",");
   for (i = 0 ; i < valT.length ; i++) {
       //Get the validation type to process 
       s = valT[i] ;
       valList =  s.split(":");
       valType =  valList[0]; 
       if (valList.length  < 1) continue;
       switch (valType)  {
       case "text" :
       	       	if  (!subTextValidation(formObject, valList[1])) return false;
         	 break;
       case "date" :
        	if  (!subDateValidation(formObject, valList[1])) return false;
         	 break;
       default :
       		 if  (!subTextValidation(formObject, valList[1])) return false;
         	 break;
       }
   }
return true;
   
} //End Function 

function subTextValidation(formObject, sValidation)  { 
  var i = 0;
  var cur_element ;  
  var field_type;
  var form_name = "";
  var sel = 0;
	
  flds = sValidation.split(";");

  for (i = 0 ; i < flds.length ; i++)
  {
       reqs = flds[i].split("+");
       cur_element = eval("formObject." + reqs[0]) ; 
   
	if ( cur_element.type == null ) { 
		field_type = "radio"
	}
      	else {
		field_type  = cur_element.type;
	}
          
	/* get the current value of the field. */
	switch (field_type) {
	case  "radio"  :
         	fldVal = getRadioValue( eval("formObject." + reqs[0]) );
         	break;
	/* case  "keyword"  : */
	case "select-one"  :
        	 sel = eval("formObject." + reqs[0] + ".selectedIndex");
		 val = eval("formObject." + reqs[0] + ".options[" + sel + "].value");
	         if (sel == -1) {
        	   	fldVal = "";
	          }
		 else
	         if (val == 'Select') {
        	   	fldVal = "";
	          }
        	 else {
	           	fldVal = eval("formObject." + reqs[0] + "[" + sel + "].text");
        	   }
	         break;
        //case  "multi-keyword"  :
	case  "select-multiple"  :
	         sel = eval("formObject." + reqs[0] + ".selectedIndex");
        	 if (sel == -1){
	           	fldVal = "";
        	 }
	         else {
        	   	fldVal = eval("formObject." + reqs[0] + "[" + sel + "].text");
	          }
        	 break;
        default  :
        	  fldVal = eval("formObject." + reqs[0] + ".value");
		  break;
	}//End Switch

	/* check if the field is empty, but should have a value. */
	if (trimStr(fldVal+"") == "")
	{
    		if (reqs[2] == "yes")
       		{
        	 	/* inform user that they need to enter a value in this field */
        	 	alert("Please enter a value for " + reqs[3]);
         		/* set the focus to the field that needs to be completed */
       	 		if (reqs[1] == "radio")
			{
				var rLength ;
				rLength  =  radioLength( eval("formObject." + reqs[0]) );
		       		if(rLength > 0 )
				{
//	           			eval("formObject." + reqs[0] + "[0].focus()");
		   		}
		 		else 
				{ 
//				   	 eval("formObject." + reqs[0]  + ".focus()");
				}
	       		}
	        	else
			{
//	        		eval("formObject." + reqs[0] + ".focus()");
        		}
	        	return false;
		}
	} 
	else
	{
		//check the Length of the fields required.  
		// if the parameter of the validation field is 0, then no specific length is required
		var maxLengthStr = reqs[4];
		var maxLengthNum = parseInt(maxLengthStr);
		var comp_optr  ;
		var base_num ;
		if (maxLengthStr == 0)
		{
		}
		else
		{
			if (fldVal.length > maxLengthNum &&  reqs[1] != "num")
			{
				alert(reqs[3] + " should be a max of " + reqs[4] + " characters, please rectify") ;
//				eval("formObject." + reqs[0] + ".focus()");
				return false;	
			}
		}
	 	/* check the type of field */
		if (reqs[1] == "num")
        	{
       	 		n = parseInt(fldVal)
          		if(isNaN(n))
           	 	{
		           alert("The value for " + reqs[3] + " should be numeric");
//		           eval("formObject." + reqs[0] + ".focus()");
		           return false;
	         	}
        		else 
	   	 	{ 
				if (isNaN(parseInt(reqs[4])))  
			  	{ 
					base_num  = 0;  
			  	} 
				else   
			  	{  
					base_num  = parseInt(reqs[4]); 
			  	} 
	
				if ( reqs.length > 5 )
			  	{
					comp_optr =  reqs[5];
			  	}
				else 
			  	{
					comp_optr =  ">" ; 
			  	}
		
				switch (comp_optr) {
       				case  ">"  : 
				   if (n >= base_num)
		        	   {
		 	        	alert("The value for " + reqs[3] + " should be less "  + base_num + ".");
//				     	eval("formObject." + reqs[0] + ".focus()");
			     		return false;
	           		   }
				   break;
				case  ">="  :
				   if (n > base_num)
			           {
        			     alert("The value for " + reqs[3] + " should be less than or equal to "  + base_num + ".");
//				     eval("formObject." + reqs[0] + ".focus()");
				     return false;
			           }
				   break;
				case  "<"  :
				   if (n < base_num)
	           		   {
		        	     	alert("The value for " + reqs[3] + " should be greater than  "  + base_num + ".");
//		     			eval("formObject." + reqs[0] + ".focus()");
		     			return false;
	           		   }
		           	   break;
				case  "<="  :
				   if (n <= base_num)
	        		   {
		        	       alert("The value for " + reqs[3] + " should be greater than or equal to "  + base_num + ".");
//				       eval("formObject." + reqs[0] + ".focus()");
		      		       return false;
	           		   }
				   break;
				default :
				   if (n > base_num)
	           		   {
		        	     alert("The value for " + reqs[3] + " should be less than equal to "  + base_num + ".");
//				     eval("formObject." + reqs[0] + ".focus()");
				     return false;
	        		    }
			            break;
				} //End Swtich
			} //End if 
	 	}// Check of Field Type
		else
		{
			fldVal = eval("formObject." + reqs[0] + ".value");
			
		//	 if(fldVal.indexOf("'")>-1)
		//	{
		//		alert("The value for " + reqs[3] + " must not contain any special symbols like '");
		//		return false;
		//	}
		//	 if(fldVal.indexOf('"')>-1)
		//	{
		//		alert("The value for " + reqs[3] + " must not contain any special symbols like"+" ");
		//		return false;
		//	}
			
			
		}

       	}   /* end of if fldVal == ""  */
    }//end of for
    return true;
}


function subDateValidation (formObject, sValidation )  
{  
  var i = 0;
  var cur_element ;  
  var field_type;
  var form_name = "";
  var sel = 0;
  flds = sValidation.split(";");
  
   for (i = 0 ; i < flds.length ; i++)
   {
       reqs = flds[i].split("+");
       fldVal = eval("formObject." + reqs[0] + ".value");
	/* check if the field is empty, but should have a value. */
	if (trimStr(fldVal+"") == "")
	{
	    	if (reqs[2] == "yes")
        	{
	        	 /* inform user that they need to enter a value in this field */
	        	 alert("Please enter a value for " + reqs[3]);
		}
	         else 
	         {
//	           	eval("formObject." + reqs[0] + ".focus()");
        	 }
	        return false;
	}
 	else
	{
		//check the Length of the fields required.  Must be checked
		// if the parameter of the validation field is 0, then no specific length is required
		var valDate=  new Date(fldVal) ;  
		var compDate ;
		var compEndDate;
		var compMethod ;
		var daysToAdjust ;
		if (reqs.length < 5 ) {
			compMethod = "nocheck";
		}
		else 
		{
			compMethod = reqs[4];
		}
		
		switch (compMethod)
		 {
		case "tomorrow" :
		   	compDate =  new Date ;
  			compDate  =  new Date(compDate.getFullYear(), compDate.getMonth() ,  compDate.getDate());
       			compDate =  compDate.setSeconds(86400)
   			//compDate =  new Date(compDate.getFullYear(), compDate.getMonth() ,  compDate.getDate());
   			if   (  valDate >  compDate)   { 
  				    alert("The value for " + reqs[3] + " should not be greater than tomorrow.");
//			     	    eval("formObject." + reqs[0] + ".focus()");
				    return false;	
   			}
			break ;
		case "yesterday" :
		   	compDate =  new Date ;
  			compDate  =  new Date(compDate.getFullYear(), compDate.getMonth() ,  compDate.getDate());
       			compDate =  compDate.setSeconds(-86400)
   			//compDate =  new Date(compDate.getFullYear(), compDate.getMonth() ,  compDate.getDate());
   			 if   (  valDate <  compDate)   { 
  				    alert("The value for " + reqs[3] + " should be less than yesterday. ");
//			     	    eval("formObject." + reqs[0] + ".focus()");
				    return false;	
   			}
			break ;
		case "today"  :
			compDate =  new Date ;
  			compDate  =  new Date(compDate.getFullYear(), compDate.getMonth() ,  compDate.getDate());
   			if   (  valDate >  compDate)   { 
  				    alert("The value for " + reqs[3] + " should be less than equal to today ");
//			     	    eval("formObject." + reqs[0] + ".focus()");
				    return false;	
   			}
			break;
		case "nocheck" :break;
		default :
		         //get the value of the text passed 
		         dtElement =  eval("formObject." + reqs[4])   ;  
		         if (dtElement == null)  { 
		         	today =  new Date;  
		         	cTemp  = ( today.getMonth() + 1 )  + "/"  + today.getDate() +  "/"  +  today.getYear()
		         }
		         else 
		         {
		         	// cTemp  =  eval("formObject." + reqs[0] + ".value");
		         	cTemp =  dtElement.value;
		         }
		        
		         //Get the month year componant of the dt
	         	dd = parseInt(cTemp.substring(cTemp.indexOf("/") + 1,cTemp.lastIndexOf("/")),10); 
	                mm = parseInt(cTemp.substring(0,cTemp.indexOf("/")),10);
	                yyyy = parseInt(cTemp.substring(cTemp.lastIndexOf("/") + 1,cTemp.length),10);
	                
		        mm =  mm  - 1; 
		        // Adjust month to get for browser  (valid range is 0 ..11  )
		        compDate =  new Date(yyyy, mm , dd)  ;      
		        //get number of days to adjust 
		        if ( reqs.length  > 5)  { 
				daysToAdjust  = parseInt(reqs[5])  ;  
			} 
			else 
			{ 	
				daysToAdjust  = 0  ;   
			}
			//get number of second to adjust 
			secondToAdjust = daysToAdjust * 86400;
		        compEndDate =  new Date (compDate.getYear(), compDate.getMonth() , compDate.getDate() ) ; 
	                compEndDate.setDate(compEndDate.getDate() + daysToAdjust) ;   
			
			if (compEndDate < compDate)  { 
				dtTemp =  compEndDate ;
				compEndDate =  compDate ;
				compDate =  dtTemp;
			} 

	                 if   (  valDate <  compDate  ||  valDate > compEndDate )   { 
  				    alert("The value for " + reqs[3] + " should be between "  + compDate + " and " +  compEndDate);			     	   // eval("formObject." + reqs[0] + ".focus()");
				    return false;	
   			}
         	} // End of switch
	  }  	//End Else 
  } // End For 
  return true;
} //end Function 
function getRadioValue(radioObject){
/* Return the value of the radio button  */
/* */
  var v = "" ;
  var i = 0;
  var numelements = 0;

/*  radioObject = formObject.eval("this." + form_name + "." + radioName);*/

  numelements = radioObject.length;
  if  ( numelements >  0 )   { 
	  for (i = 0 ; i < numelements ; i++) {
	    if (radioObject[i].checked == true) {
	      v = radioObject[i].value;
	      }
  	  }
  }
  else 
  {
    if (radioObject.checked == true) {
      v = radioObject.value;
    }
	
  }
  return v;
}

function radioLength(radioObject) {

  var numelements ;

  numelements = radioObject.length;
  return numelements;

}
function trimStr(strVal) 
{
// trim leading and trailing spaces from the string value.
  var start = 0;
  var end = strVal.length;
  strVal = strVal + "!";

  // find first non space char.
  	for (start = 0 ; strVal.substring(start , start+1) == " " ; start++);

	  if (start < end) {
		// find last space.
		for (end = end ; strVal.substring(end-1 , end) == " " ; end--);
			return strVal.substring(start, end);
		}
  	else 
  	{
    		return "";
    	}
}
function Delete(btn)
{
	if(confirm("Do you wish to continue?"))
	{ 
		var value=getCheckValue();
		if((value == null) || value.length == 0)
			alert("Please select atleast one record to Delete");
		else
		{
			if(value == "admin")
				alert("You Can Not Delete This Record");
			else
			{
				chVal = value.join("#");
				toPost("PerformAction?LayoutId=" + document.frmLayout.LayoutID.value + "&Mode=" + document.frmLayout.Mode.value + "&Action=" + btn.id + "&check=" + chVal);
			}
		}
	}
}



function toPost(getString)
{
	var parms = getString.split('?');
	var newF = document.createElement("form");
	newF.action = parms[0];
	newF.method = 'POST';
	var parms = parms[1].split('&');
	for (var i=0; i<parms.length; i++)
	{
		var pos = parms[i].indexOf('=');
		if (pos > 0)
		{
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			var newH = document.createElement("input");
			newH.name = key;
			newH.type = 'hidden';
			newH.value = val;
			newF.appendChild(newH);
		}
	}
	document.getElementsByTagName('body')[0].appendChild(newF);
	newF.submit();
}

function getCheckValue(){
/* Return the value of the radio button  */
/* */
	
	var v = new Array();
	var i = 0;
	var numelements = 0;
	checkObject = document.frmLayout.check;
	numelements = checkObject.length;
	if(numelements > 0)
	{
		n=0;
		for (i = 0 ; i < numelements ; i++)
		{
			if (checkObject[i].checked == true)
			{
				v[n] = checkObject[i].value;
				n++;
			}
  		}
	}
	else 
	{
		if (checkObject.checked == true)
		{
			v[0] = checkObject.value;
		}
	}
	return v;
}


function Sort(myTable, myCol, myType) 
{
	// Create a two-dimensional array and fill it with the table's content
	var mySource = document.all(myTable);
	var myRows = mySource.rows.length;
	var myCols = mySource.rows(0).cells.length;
	currentCol = myCol
	myArray = new Array(myRows-1)
	for (i=1; i < myRows; i++) {
		myArray[i-1] = new Array(myCols*2)
		for (j=0; j < myCols; j++) 
		{
			myArray[i-1][j] = document.all(myTable).rows(i).cells(j).innerText
			myArray[i-1][j+myCols] = document.all(myTable).rows(i).cells(j).innerHTML
		}
	}

	if (myCol == previousCol) {
		myArray.reverse(); // clicked the same column as previously - reverse the sort
	}
	else { // clicked on a new column - sort as indicated
		switch (myType) {
			case "a":
				myArray.sort(CompareAlpha);
				break;
			case "ai":
				myArray.sort(CompareAlphaIgnore);
				break;
			case "d":
				myArray.sort(CompareDate);
				break;
			case "de":
				myArray.sort(CompareDateEuro);
				break;
			case "n":
				myArray.sort(CompareNumeric);
				break;
			default:
				myArray.sort()
		}
	}

	// Re-write the table contents
	for (i=1; i < myRows; i++) {
		for (j=0; j < myCols; j++) {
			mySource.rows(i).cells(j).innerHTML = myArray[i-1][j+myCols]
		}
	}

	previousCol = myCol; // remember the current sort column for the next pass
	return 0;
}
function CompareDateEuro(a, b) {
	// this one works with european date formats, e.g. d.m.yyyy
	strA = a[currentCol].split(".");
	strB = b[currentCol].split(".")
	datA = new Date(strA[2], strA[1], strA[0]);
	datB = new Date(strB[2], strB[1], strB[0]);
	if (datA < datB) { return -1; }
	else {
		if (datA > datB) { return 1; }
		else { return 0; }
	}
}

function CompareNumeric(a, b) {
	//window.alert ("CompareNumeric");
	numA = a[currentCol]
	numB = b[currentCol]
	if (isNaN(numA)) { return 0;}
	else {
		if (isNaN(numB)) { return 0; }
		else { return numA - numB; }
	}
}

function CompareAlphaIgnore(a, b) {
	strA = a[currentCol].toLowerCase();
	strB = b[currentCol].toLowerCase();
	if (strA < strB) { return -1; }
	else {
		if (strA > strB) { return 1; }
		else { return 0; }
	}
}

function CompareDate(a, b) {
	// this one works with date formats conforming to Javascript specifications, e.g. m/d/yyyy
	datA = new Date(a[currentCol]);
	datB = new Date(b[currentCol]);
	if (datA < datB) { return -1; }
	else {
		if (datA > datB) { return 1; }
		else { return 0; }
	}
}
function CompareAlpha(a, b) {
	if (a[currentCol] < b[currentCol]) { return -1; }
	if (a[currentCol] > b[currentCol]) { return 1; }
	return 0;
}
function AddArea()
{
	location.href="./Jsp/pg_frm_areaentry_broadband_foryou.jsp";
}
function AddApartment()
{
	location.href="./Jsp/pg_frm_broadband_apartment.jsp";
}
function AddNationalRoamingPrepaid()
{
	location.href="./Jsp/pg_frm_mobile_prep_nationalrom.jsp";
}
function AddNationalRoamingPostpaid()
{
	location.href="./Jsp/pg_frm_mobile_postp_nationalrom.jsp";
}
function AddNationalRoamingoperator()
{
	location.href="./Jsp/pg_frm_mobile_prep_nationalrom_operator.jsp";
}
function AddPostpaidnationalRoamingoperator()
{
	location.href="./Jsp/pg_frm_mobile_postp_nationalrom_operator.jsp";
}
function AddSubZone()
{
	location.href="./Jsp/pg_frm_subzoneentry_fixedline_foryou.jsp";
}
function AddSubZoneBroadband()
{
	location.href="./Jsp/pg_frm_subzoneentry_broadband_foryou.jsp";
}
function AddAreaFixedline()
{
	location.href="./Jsp/pg_frm_fixedline_area.jsp";
}
function AddAreabroadband()
{
	location.href="./Jsp/pg_frm_broadband_area.jsp";
}
function AddLocalityforAirtelrelationshipcenter_fixedline()
{
	location.href="./Jsp/pg_frm_fixedline_ra_relationCenter_locality.jsp";
}
function AddRelationshipFixedline()
{
	location.href="./Jsp/pg_frm_fixedline_ra_relationshipCenter.jsp";
}
function AddLocalityforAirtelrelationshipcenter_broaadband()
{	
	location.href="./Jsp/pg_frm_broadband_ra_relationshipCenter_locality.jsp";
}
function AddRelationshipBroadband()
{
	location.href="./Jsp/pg_frm_broadband_ra_relationshipCenter.jsp";
}
function AddPaymentAssistanceceter_mobile()
{
	location.href="./Jsp/pg_frm_mobile_ra_paymentAssisstance.jsp";
}
function AddLocalityforAirtelrelationshipcenter_Mobile()
{
	location.href="./Jsp/pg_frm_mobile_ra_relationCenter_locality.jsp";
}
function AddRelationshipCenter()
{
	location.href="./Jsp/pg_frm_ra_mobile_relationshipCenter.jsp";
}
function OpenUserAccess()
{
	location.href="./Jsp/UserAccessView.jsp";
}
function AddAssignModule()
{
	location.href="./Jsp/pg_frm_user_module_map.jsp";
}
function OpenIntRomingRate()
{
	location.href="./Jsp/pg_frm_mobile_country_mapping.jsp";
}
function AddRelationshipFixedwireless()
{
  location.href="./Jsp/pg_frm_fixedwireless_ra_relationshipCenter.jsp";
}
function AddReachairtelFixedwirelessPAC()
{
	location.href="./Jsp/pg_frm_fixedwireless_ra_paymentAssisstance.jsp";
}
function Opendefpass()
{	
	location.href="./Jsp/defaultpass.jsp";
}
function OpenUnlockPass()
{	
	location.href="./Jsp/unlockpass.jsp";
}
function AddPostpaidMapping()
{
	location.href="./Jsp/pg_frm_prepaid_circle_mapping.jsp";
}
function AddPrepaidMapping()
{
	
	location.href="./Jsp/pg_frm_circle_mapping.jsp";
}
function AddHandsetServicesFixedwireless()
{
	
	location.href="./Jsp/pg_frm_fwl_ra_handsetservice.jsp";
}
function AddXMLModule()
{
	location.href="./Jsp/makeModule.jsp";
}
function AddSchedulerData()
{
	location.href="./Jsp/scheduler.jsp";
}
function AddOpenReachairetelpaymentBroadband()
{
	location.href="./Jsp/pg_frm_broadband_ra_paymentassisstanceCenter.jsp";
}
function AddReachairtelFixedlinePAC()
{
	location.href="./Jsp/pg_frm_fixedline_ra_paymentassisstanceCenter.jsp";
}
function AddCallingCardAccessNumber()
{
	location.href="./Jsp/pg_frm_callingcards_accessNumbers_countryDetails.jsp";
}
function OpenHomePhonesSTDCodes()
{
	location.href="./Jsp/pg_frm_hp_stdcodes.jsp";
}
function openExcellUploadArcMobile()
{
	location.href="./Jsp/excelUpload_Mob_Arc.jsp";
}
function openExcellUploadPacMobile()
{
	location.href="./Jsp/excelUpload_Mob_Pac.jsp";
}
function openExcellUploadArcBroadband()
{
	location.href="./Jsp/excelUpload_BroadBnd_Arc.jsp";
}
function openExcellUploadPacBroadband()
{
	location.href="./Jsp/excelUpload_BroadBnd_Pac.jsp";
}
function openExcellUploadArcFixedline()
{
	location.href="./Jsp/excelUpload_FixedLine_Arc.jsp";
}
function openExcellUploadPacFixedline()
{
	location.href="./Jsp/excelUpload_FixedLine_Pac.jsp";
}
function openExcellUploadArcFixedwireless()
{
	location.href="./Jsp/excelUpload_FixedWireless_Arc.jsp";
}
function openExcellUploadPacFixedwireless()
{
	location.href="./Jsp/excelUpload_FixedWireless_Pac.jsp";
}
function openExcellUploadHandsetFixedwireless()
{
	location.href="./Jsp/excelUpload_FixedWireless_Hsc.jsp";
}
function openExcellUploadSongs()
{
	location.href="./Jsp/excelUpload_SearchSongs.jsp";
}
function openComplaintForm()
{
	location.href="./Jsp/pg_frm_complaint_form.jsp";
}
function searchComplaintForm()
{
	location.href="./Jsp/pg_frm_status_search.jsp";
}

function excelComplaintForm()
{
	location.href="./Jsp/pg_frm_airtel_complaint.jsp";
}

function viewComplaint()
{
	location.href="./Jsp/pg_frm_CircleWiseView.jsp";
}

function OpenBroadbandNeedConnection()
{
	location.href="./Jsp/pg_frm_broadband_leadgen.jsp";
}

function AddGetAirtelBroadband()
{
	window.open("./Jsp/pg_frm_importToXL_GetAirtel.jsp");
	//location.href=;
}
function AddGetBroadband()
{
	window.open("./Jsp/pg_frm_importToXL_GetAirtelBroaband.jsp");
	//location.href=;
}
function AddiPhone3G()
{
	location.href="./Jsp/pg_frm_iPhone3G.jsp";
}
function AddAirtelHP()
{
	location.href="./Jsp/pg_frm_airtelHP.jsp";
}
function AddMobilityPrePost()
{
	location.href="./Jsp/pg_frm_mobility_report.jsp";
}

function AddTrackChange()
{
	location.href="./Jsp/monthlyUpdateReport.jsp";
}
function openEAlertsAddPM()
{
	location.href="./Jsp/ealerts_product_manager.jsp";
}

function openEAlertsAddFrequency()
{
	location.href="./Jsp/ealerts_schedule_events.jsp";
}
function AddScheduleForEalerts()
{
	location.href="./Jsp/ealerts_auditTrailScheduler.jsp";
}
function AddMobilityWiFi()
{

	location.href="./Jsp/pg_frm_wifi_report.jsp";

}
function openScmReport()
{

	location.href="./Jsp/pg_frm_scm_report.jsp";

}
function AddBusinessenquiry()
{

	location.href="./Jsp/pg_frm_business_enquiry_report.jsp";

}

function AddIPTVExport()
{

	location.href="./Jsp/pg_frm_iptv_lead_capture.jsp";
}
function openMobilityPostpaidTariff()
{
      location.href="./Jsp/MobilePostpaidTariff.jsp";

}
function openMobilityPrepaidTariff()
{
    location.href="./Jsp/MobilePrepaidTariff.jsp";

}
function openBroadbandtariff()
{
    location.href="./Jsp/BroadbandPlan.jsp";

}
function AddGenericExport()
{
    location.href="./Jsp/pg_frm_generic_lead_capture.jsp";

}
function AddNetPCExport()
{
    location.href="./Jsp/pg_frm_netPC_lead_capture.jsp";

}
function AddGenericTollfreeExport()
{
location.href="./Jsp/pg_frm_generic_lead_tollFree.jsp";
}
function AddTollfreeExport()
{
location.href="./Jsp/pg_frm_tollFree_lead_capture.jsp";
}
function AddILPExport()
{
location.href="./Jsp/pg_frm_ilp_lead_capture.jsp";
}
function Add1399Export()
{
location.href="./Jsp/pg_frm_1399_lead_capture.jsp";
}
function AddGenericWifiExport()
{
location.href="./Jsp/pg_frm_generic_wifi_lead.jsp";
}
function sodReport()
{
location.href="./Jsp/sodlead.jsp";
}
function godReport()
{
location.href="./Jsp/godlead.jsp";
}
function pcsecReport()
{
location.href="./Jsp/pcsecurelead.jsp";
}
function hostedmailExp()
{
location.href="./Jsp/ealerts_set_frequency.jsp";
}
function hostedmailExport()
{
location.href="./Jsp/hostedmaillead.jsp";
}
function websiteBuilderExport()
{
  location.href="./Jsp/websitebuilderlead.jsp";
}
function ForYouwebsiteBuilderExport()
{
  location.href="./Jsp/foryouwebsitebuilderlead.jsp";
}
function vpnExport()
{
location.href="./Jsp/vpnlead.jsp";
}
function wizkidExport()
{
  location.href="./Jsp/wizkidlead.jsp";
}
function wifiHotspotExport()
{
  location.href="./Jsp/wifihotspot_lead.jsp";
}
function BBDoubleSpeedExport()
{
  location.href="./Jsp/broadband_doubleSpeed.jsp";
}


function addOperator(){


	var _countryID=document.frmLayout.COUNTRYID.value;
	var _operatorName=document.frmLayout.OPERATORNAME.value;
	var _pulseRate=document.frmLayout.PULSERATE.value;
	var _lcPeakVoice=document.frmLayout.LCPEAKRATE.value;
	var _lcPeakOffVideo=document.frmLayout.LCOFFPEAKRATE.value;
	var _incomingCallsRCFVoice=document.frmLayout.ICRCF.value;
	var _incomingCallsAirTimeVoice=document.frmLayout.ICAIRTIME.value;
	var _incomingCallsRCFVideo=document.frmLayout.ICRCFVIDEO.value;
	var _incomingCallsAirTimeVideo=document.frmLayout.ICAIRTIMEVIDEO.value;
	var _cbiPeakRate=document.frmLayout.CBIPEAKRATE.value;
	var _cbiOffPeakRate=document.frmLayout.CBIOFFPEAKRATE.value;
	var _sms=document.frmLayout.SMS.value;
	var _smsInc=document.frmLayout.SMSINCOM.value;
	var _gprsInr = document.frmLayout.GPRSINR.value;
	var _gprsDesc=document.frmLayout.GPRSDESC.value;
	var _customerCare=document.frmLayout.CUSTCARE.value;
	var _handSetDisplay=document.frmLayout.HANDSETDISPLAY.value;
	var _website=document.frmLayout.WEBSITE.value;
	var _networkFrequency=document.frmLayout.NETWORKFREQUENCY.value;
	var _networkCode=document.frmLayout.MCC.value;
	var _countryCode=document.frmLayout.COUNTRYCODE.value;
	var _tariffUpdate=document.frmLayout.TARIFFUPDATEDATE.value;
	var _currencyConversion=document.frmLayout.CURCOUNTRY.value;
	var _mode=document.frmLayout.Mode.value;
	var _gprsCircleChecked="";
	var _gprsCircleUnchecked="";
	if(document.frmLayout.GPRSCIRCLE.length>0){
			var i=0;
			len=document.frmLayout.GPRSCIRCLE.length;

				if(len>(-1))
				{
					
				  for(i=0;i<len;i++)
				  {

					if(document.frmLayout.GPRSCIRCLE[i].checked==true)  
					{
					 _gprsCircleChecked=document.frmLayout.GPRSCIRCLE[i].value+','+_gprsCircleChecked;
					
					}
					
				  }
				}
			}
	if(_mode=="A"){
		location.href="./Jsp/insertInterationalRoamingPostpaidOperator.jsp?COUNTRYID="+_countryID+"&OPERATORNAME="+_operatorName+"&PULSERATE="+_pulseRate+"&LCPEAKRATE="+_lcPeakVoice+"&LCOFFPEAKRATE="+_lcPeakOffVideo+"&ICRCF="+_incomingCallsRCFVoice+"&ICAIRTIME="+_incomingCallsAirTimeVoice+"&ICRCFVIDEO="+_incomingCallsRCFVideo+"&ICAIRTIMEVIDEO="+_incomingCallsAirTimeVideo+"&CBIPEAKRATE="+_cbiPeakVoice+"&CBIOFFPEAKRATE="+_cbiOffPeakVideo+"&SMS="+_sms+"&SMSINCOM="+_smsInc+"&GPRSINR="+_gprsInr+"&GPRSDESC="+_gprsDesc+"&CUSTCARE="+_customerCare+"&HANDSETDISPLAY="+_handSetDisplay+"&WEBSITE="+_website+"&NETWORKFREQUENCY="+_networkFrequency+"&MCC"+_networkCode+"&COUNTRYCODE="+_countryCode+"&TARIFFUPDATEDATE="+_tariffUpdate+"&CURCOUNTRY="+_currencyConversion+"&GPRSCIRCLE="+_gprsCircleChecked;
	}
	if(_mode=="E"){
		
		location.href="./Jsp/pg_frm_updategprs.jsp?COUNTRYID="+_countryID+"&OPERATORNAME="+_operatorName+"&PULSERATE="+_pulseRate+"&LCPEAKRATE="+_lcPeakRate+"&LCOFFPEAKRATE="+_lcPeakOffVideo+"&ICRCF="+_incomingCallsRCFVoice+"&ICAIRTIME="+_incomingCallsAirTimeVoice+"&ICRCFVIDEO="+_incomingCallsRCFVideo+"&ICAIRTIMEVIDEO="+_incomingCallsAirTimeVideo+"&CBIPEAKRATE="+_cbiPeakRate+"&CBIOFFPEAKRATE="+_cbiOffPeakRate+"&SMS="+_sms+"&SMSINCOM="+_smsInc+"&GPRSINR="+_gprsInr+"&GPRSDESC="+_gprsDesc+"&CUSTCARE="+_customerCare+"&HANDSETDISPLAY="+_handSetDisplay+"&WEBSITE="+_website+"&NETWORKFREQUENCY="+_networkFrequency+"&MCC"+_networkCode+"&COUNTRYCODE="+_countryCode+"&TARIFFUPDATEDATE="+_tariffUpdate+"&CURCOUNTRY="+_currencyConversion+"&GPRSCIRCLE="+_gprsCircleChecked;
		
	}

}

function validate(){
	              if(document.frmLayout.COUNTRYID.value=="Select")
	   {
	       alert("Please Select Country.");
	       return false;
	    }
	    if(document.frmLayout.OPERATORNAME.value=="")
	   {
	       alert("Please Enter Operator Name.");
	       return false;
	    }
	    if(document.frmLayout.PULSERATE.value=="")
	   {
	       alert("Please Enter Pulse Rate.");
	       return false;
	    }
	    
	    if(document.frmLayout.LCPEAKRATE.value=="")
	   {
	       alert("Please Enter Local Calls(Voice).");
	       return false;
	    }
	    if(document.frmLayout.LCOFFPEAKRATE.value=="")
	   {
	       alert("Please Enter Local Calls(Video).");
	       return false;
	    }
	     if(document.frmLayout.ICRCF.value=="")
	   {
	       alert("Please Enter Incoming Calls RCF(Voice).");
	       return false;
	    }
		   if(document.frmLayout.ICAIRTIME.value=="")
	   {
	       alert("Please Enter Incoming Calls AirTime(Voice).");
	       return false;
	    }
		/*if(document.frmLayout.ICRCFVIDEO.value=="")
	   {
	       alert("Please Enter Incoming Calls RCF(Video).");
	       return false;
	    }
		   if(document.frmLayout.ICAIRTIMEVIDEO.value=="")
	   {
	       alert("Please Enter Incoming Calls AirTime(Video).");
	       return false;
	    }
		*/

		if(document.frmLayout.CBIPEAKRATE.value=="")
	   {
	       alert("Please Enter Call Back To India(Voice).");
	       return false;
	    }
		if(document.frmLayout.CBIOFFPEAKRATE.value=="")
	   {
	       alert("Please Enter Call Back To India(Video).");
	       return false;
	    }
		if(document.frmLayout.SMS.value=="")
	   {
	       alert("Please Enter SMS Outgoing");
	       return false;
	    }
	    
		if(document.frmLayout.GPRSDESC.value=="")
	   {
	       alert("Please Enter GPRS Charging pulse as per operator.");
	       return false;
	    }
		if(document.frmLayout.CUSTCARE.value=="")
	   {
	       alert("Please Enter Customer Care.");
	       return false;
	    }
		
		if(document.frmLayout.HANDSETDISPLAY.value=="")
	   {
	       alert("Please Enter Hans Set Display.");
	       return false;
	    }
		if(document.frmLayout.WEBSITE.value=="")
	   {
	       alert("Please Enter Website.");
	       return false;  
	    }
		if(document.frmLayout.WEBSITE.value!=null){	    
	   var web=/^(www)[.][A-Za-z0-9-_%&\?\/.=]+.[A-Za-z0-9-_%&\?\/.=]+$/;
	    if (document.frmLayout.WEBSITE.value.search(web)==-1){   
      	alert("Please Enter Website Address,Like www.google.com");
		return false;
		}
		}
		
           
		if(document.frmLayout.NETWORKFREQUENCY.value=="")
	   {
	       alert("Please Enter Network Frequency.");
	       return false;
	    }
	    
		if(document.frmLayout.COUNTRYCODE.value=="")
	   {
	       alert("Please Enter Country Code.");
	       return false;
	    }
		
		if(document.frmLayout.TARIFFUPDATEDATE.value=="")
	   {
	       alert("Please Enter Tariff Update.");
	       return false;
	    }
		if(document.frmLayout.CURCOUNTRY.value=="Select")
	   {
	       alert("Please Enter Currency.");
	       return false;
	    }
	    else{
		return true;	    
	    }		

	 }

function updateOperator(){
	if(validate()){
	var _key=null;
	var _countryID=document.frmLayout.COUNTRYID.value;
	var _operatorName=document.frmLayout.OPERATORNAME.value;
	var _pulseRate=document.frmLayout.PULSERATE.value;
	var _lcPeakVoice=document.frmLayout.LCPEAKRATE.value;
	var _lcPeakOffVideo=document.frmLayout.LCOFFPEAKRATE.value;
	var _incomingCallsRCFVoice=document.frmLayout.ICRCF.value;
	var _incomingCallsAirTimeVoice=document.frmLayout.ICAIRTIME.value;
	var _incomingCallsRCFVideo=document.frmLayout.ICRCFVIDEO.value;
	var _incomingCallsAirTimeVideo=document.frmLayout.ICAIRTIMEVIDEO.value;
	var _cbiPeakVoice=document.frmLayout.CBIPEAKRATE.value;
	var _cbiOffPeakVideo=document.frmLayout.CBIOFFPEAKRATE.value;
	var _sms=document.frmLayout.SMS.value;
    var _smsInc=document.frmLayout.SMSINCOM.value;
	
	if(_smsInc=="" || _smsInc==null || _smsInc=="null" || _smsInc==" ")
          {
            _smsInc="0";
          }
	var _gprsInr = document.frmLayout.GPRSINR.value;
	var _gprsCur = document.frmLayout.GPRSCUR.value;
	var _gprsDesc=document.frmLayout.GPRSDESC.value;
	var _customerCare=document.frmLayout.CUSTCARE.value;
	var _handSetDisplay=document.frmLayout.HANDSETDISPLAY.value;
	var _website=document.frmLayout.WEBSITE.value;
	var _networkFrequency=document.frmLayout.NETWORKFREQUENCY.value;
	var _networkCode=document.frmLayout.MCC.value;
	var _countryCode=document.frmLayout.COUNTRYCODE.value;
	var _tariffUpdate=document.frmLayout.TARIFFUPDATEDATE.value;
	var _currencyConversion=document.frmLayout.CURCOUNTRY.value;
	var _mode=document.frmLayout.Mode.value;
	if(_mode=="E"){
		 _key=document.frmLayout.OLDPKEY.value;
	}
	var _gprsCircleChecked="";
	var _gprsCircleUnchecked="";
	if(document.frmLayout.GPRSCIRCLE.length>0){
			var i=0;
			len=document.frmLayout.GPRSCIRCLE.length;

				if(len>(-1))
				{
					
				  for(i=0;i<len;i++)
				  {

					if(document.frmLayout.GPRSCIRCLE[i].checked==true)  
					{
					 _gprsCircleChecked=document.frmLayout.GPRSCIRCLE[i].value+','+_gprsCircleChecked;
					
					}
					
				  }
				}
			}
		if(_mode=="A"){
			url="./Jsp/insertInterationalRoamingPostpaidOperator.jsp?COUNTRYID="+_countryID+"&OPERATORNAME="+_operatorName+"&PULSERATE="+_pulseRate+"&LCPEAKRATE="+_lcPeakVoice+"&LCOFFPEAKRATE="+_lcPeakOffVideo+"&ICRCF="+_incomingCallsRCFVoice+"&ICAIRTIME="+_incomingCallsAirTimeVoice+"&ICRCFVIDEO="+_incomingCallsRCFVideo+"&ICAIRTIMEVIDEO="+_incomingCallsAirTimeVideo+"&CBIPEAKRATE="+_cbiPeakVoice+"&CBIOFFPEAKRATE="+_cbiOffPeakVideo+"&SMS="+_sms+"&SMSINCOM="+_smsInc+"&GPRSINR="+_gprsInr+"&GPRSCUR="+_gprsCur+"&GPRSDESC="+_gprsDesc+"&CUSTCARE="+_customerCare+"&HANDSETDISPLAY="+_handSetDisplay+"&WEBSITE="+_website+"&NETWORKFREQUENCY="+_networkFrequency+"&MCC="+_networkCode+"&COUNTRYCODE="+_countryCode+"&TARIFFUPDATEDATE="+_tariffUpdate+"&CURCOUNTRY="+_currencyConversion+"&GPRSCIRCLE="+_gprsCircleChecked;
			location.href=url;
		}
		else{
			location.href="./Jsp/pg_frm_updategprs.jsp?COUNTRYID="+_countryID+"&OPERATORNAME="+_operatorName+"&PULSERATE="+_pulseRate+"&LCPEAKRATE="+_lcPeakVoice+"&LCOFFPEAKRATE="+_lcPeakOffVideo+"&ICRCF="+_incomingCallsRCFVoice+"&ICAIRTIME="+_incomingCallsAirTimeVoice+"&ICRCFVIDEO="+_incomingCallsRCFVideo+"&ICAIRTIMEVIDEO="+_incomingCallsAirTimeVideo+"&CBIPEAKRATE="+_cbiPeakVoice+"&CBIOFFPEAKRATE="+_cbiOffPeakVideo+"&SMS="+_sms+"&SMSINCOM="+_smsInc+"&GPRSINR="+_gprsInr+"&GPRSCUR="+_gprsCur+"&GPRSDESC="+_gprsDesc+"&CUSTCARE="+_customerCare+"&HANDSETDISPLAY="+_handSetDisplay+"&WEBSITE="+_website+"&NETWORKFREQUENCY="+_networkFrequency+"&MCC="+_networkCode+"&COUNTRYCODE="+_countryCode+"&TARIFFUPDATEDATE="+_tariffUpdate+"&CURCOUNTRY="+_currencyConversion+"&GPRSCIRCLE="+_gprsCircleChecked+"&OLDPKEY="+_key;
		}
	}

}
function AddExcelUploadCoverageFixedline()
{	
	location.href="./Jsp/excelUpload_Fixedline_Coverage.jsp";
}

function AddExcelUploadCoverageBroadband()
{	
	location.href="./Jsp/excelUpload_BroadBnd_Coverage.jsp";
}

//*****  Picture  Gallery   **************/ 
function AddEvent()
{
	location.href="./picture_gallery/Jsp/pg_frm_picgallery_addEvent.jsp";

}
function DeleteEvent()
{	var value=getCheckValue();
			
			if((value == null) || value.length == 0)
			{
				alert("Please select an Event to Delete");
				
			}
			else if( value.length != 1)
			{
				alert("Please select  single  Event to Delete");
			}
			else
			{	if(confirm("Do you wish to Delete Event ?"))
				{ 
				location.href="./picture_gallery/Jsp/del_picgallery_event.jsp?event_name="+value;
				}
			}
	

}

function UploadPic()
{
	location.href="./picture_gallery/Jsp/pg_frm_upload_picgallery.jsp";

}
//*********************************************//


//*****  Media Center Gallery  **************/ 

function AddMediaCenter()
{
location.href="./image_gallery/Jsp/pg_frm_picgallery_addEvent.jsp";
}

function deleteMediaCenter()
{
                    var value=getCheckValue();
			
			if((value == null) || value.length == 0)
			{
				alert("Please select a category to Delete");
				
			}
			else if( value.length != 1)
			{
				alert("Please select a category to Delete");
			}
			else
			{	if(confirm("Do you wish to Delete Event ?"))
				{ 
				location.href="./image_gallery/Jsp/del_picgallery_event.jsp?event_name="+value;
				}
			}

}

function uploadMediaCenter()
{
location.href="./image_gallery/Jsp/pg_frm_upload_picgallery.jsp";
}
function getOperatorData()
{
	window.location="./Jsp/InternationalRomaing_Utility_CSV.jsp";
	
}

function openBroadbandPDF()
{
		location.href="./Jsp/PdfUpload_BroadBand.jsp";
}
function openFixedLinePDF()
{
	location.href="./Jsp/PdfUpload_FixedLine.jsp";
}
function OpenBBNeedConnectionBritannica()
{
	location.href="./Jsp/pg_frm_broadband_leadgen_britannica.jsp";
}


//*******************/ 

// Functions for 3G requirement

function open3gFaq()
{
  location.href="./Jsp/3g_faq.jsp";
}

function delete3GFaq()
{
           var value=getCheckValue();
			
			if((value == null) || value.length == 0)
			{
				alert("Please select a question to Delete");
				
			}
			else if( value.length != 1)
			{
				alert("Please select a question to Delete");
			}
			else
			{	if(confirm("Do you wish to Delete question ?"))
				{ 
				location.href="./picture_gallery/Jsp/del_3g_faq.jsp?faqid="+value;
				}
			}

}

function lead3G()
{
  location.href="./Jsp/3g_lead_report.jsp";
}

function OpenConferenceFeedbackForm()
{
	location.href="./Jsp/ConferenceServiceFeedback_leadgen.jsp";
}

function OpenCustomerFeedbackForm()
{
	location.href="./Jsp/CustomerFeedback_leadgen.jsp";
}

function openMNPLeadReport()
{
	location.href="./leads/mnpaction/mnp_leadgen.jsp";
}
function OpenCustomerServiceFeedbackForm()
{
	location.href="./leads/CustomerServiceFeedback/CustomerServiceFeedback_leadgen.jsp";
}
function OpenPrepaidMobilityLeadForm()
{
	location.href="./Jsp/MobilityPrepaidLeadreport.jsp";
}
function OpenPostpaidMobilityLeadForm()
{
	location.href="./Jsp/MobilityPostpaidLeadreport.jsp";
}
function OpenMPLSLead()
{
	location.href="./Jsp/MPLSLeadReport.jsp";
}

/**** For Broadband tariff Citywise Plans***/

function deleteBroadband(){
	var value = getCheckValue();
	if((value == null) || value.length == 0)
			{
				alert("Please select an Event to Delete");
				
			}
			
			else
			{	if(confirm("Do you wish to Delete Event ?"))
				{ 
				location.href="./Jsp/BroadbandPlanDelete.jsp?PLANID="+value;
				}
			}
}

function openCitywisePlan(){
	location.href="./Jsp/BroadbandCitywisePlan.jsp";
}


function openAirtelMoviesReportForm(){
	location.href="./Jsp/airtelmovieslead.jsp";
}
function openAirtelPhotosReportForm(){
	location.href="./Jsp/airtelphotoslead.jsp";
}
function openBroadbandTVReportForm(){
	location.href="./Jsp/broadbandtvlead.jsp";
}
function openLearnNextReportForm(){
	location.href="./Jsp/learnnextlead.jsp";
}
function AddPincodeforpac_broaadband()
{	
	location.href="./Jsp/pg_frm_broadband_ra_relationshipCenter_pincode.jsp";
}

// SJ: CR37467: SMEPortal - Emerging Business Lead.
function openEmergingBusinessReportForm()
{
location.href="./Jsp/EmergingBizReportForm.jsp";
}

function openComplaintReport()
{
  location.href="./Jsp/pg_frm_complaint_report.jsp";
}

function openFeedbackReport()
{
  location.href="./Jsp/pg_frm_feedback_report.jsp";
}

function openVASMISReport(){
	location.href="./Jsp/vasReportFilter.jsp";
}

function openUnpublishedVasList(){
	window.open("./vas_service/vasPublishController.jsp?publish=yes&circle=0");

}

function openPublishedVasList(){
	window.open("./vas_service/vasPublishController.jsp?publish=no&circle=0");

}
//******MAMO JS

function mamoOfferReport(){
	location.href="./Jsp/pg_frm_mamo_report.jsp";

}

function mamoOfferViewReport(){
	location.href="./Jsp/pg_frm_mamo_offerView_report.jsp";

}

function openMamoOffer(){
	location.href="./Jsp/pg_frm_mamo_offer.jsp";
}

