function emailValidation(param){
    var emailID = "";
	var msg = "";
    var msg1 = "";
	if(param=="loginUser") { 
		 emailID = document.forms['login'].loginName;
		 msg = "Invalid user id."
		 msg1 = "Please enter user id."
	}
	if(param=="reg_UserId" ||  param=="memberAdd" || param=="registration")
	{
		 emailID = document.forms['regForm'].pri_Email;
		 msg = "Invalid user id."
		 msg1 = "Please enter user id."
	}
	if(param=="addProducer")
	{
		 emailID = document.forms['addUser'].mail;
		 msg = "Invalid user id."
		 msg1 = "Please enter user id."
	}
	if(param=="fgtpwd") {
		 emailID = document.forms['TheForm'].email;
		 msg = "Invalid user id."
		 msg1 = "Please enter user id."
	}
	if(param=="req_Email") {
		 emailID = document.forms['reqInfo'].pri_Email;
		 msg = "Invalid email id."
		 msg1 = "Please enter email id."
	}
	if(param=="reg_newsletter1") {
	     emailID = document.forms['regForm'].newsemail1;
		 msg = "Invalid email id."
		 msg1 = "Please enter email id."
	}
	if(param=="reg_newsletter2") {
		emailID = document.forms['regForm'].newsemail2;
		 msg = "Invalid email id."
		 msg1 = "Please enter email id."
	}
	if(param=="reg_newsletter3") {
		 emailID = document.forms['regForm'].newsemail3;
		 msg = "Invalid email id."
		 msg1 = "Please enter email id."
	}
	if(param=="reg_Email") {

		 emailID = document.forms['regForm'].sr_Email;
		 msg = "Invalid email id."
		 msg1 = "Please enter email id."
	}
	if(param=="raUsers") {

		 emailID = document.forms['regForm'].pri_Email;
		 msg = "Invalid email id."
		 msg1 = "Please enter email id."
	}
	if(param=="newSubmission" || param=="requestArtwork") {
		emailID = document.forms['TheForm'].email;
		msg = "Invalid email id."
		msg1 = "Please enter email id."
	}
	if(param=="offerEmailValidation") {
		emailID = window.parent.frames['bott'].document.forms['offerData'].email;
		msg = "Invalid email id."
		msg1 = "Please enter email id."
	}
	if(param=="reg_UserId" ||  param=="memberAdd" || param=="fgtpwd" || param=="reg_Email" ||
	   param=="reg_newsletter1" || param=="reg_newsletter2" || param=="reg_newsletter3" ||
	   param=="req_Email"  ||  param=="raUsers" || param=="newSubmission" || 
	   param=="requestArtwork" || param=="addProducer" || param=="registration" || param=="loginUser" || param=="offerEmailValidation") {

		if ((Trim(emailID.value)==null) || (Trim(emailID.value)=="")){
			alert(msg1)
			emailID.focus()
			return false
		}//inner if
		if (checkSPLCharForEmail(emailID,msg)==false){
			//emailID.focus()
			return false
		}//if
	}//if
	if (echeck(Trim(emailID.value))==false){
		emailID.value="";
		emailID.focus()
		return false
	}
	  return true

	function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert(msg)
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ 
		   alert(msg)
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert(msg)
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert(msg)
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert(msg)
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert(msg)
		    return false
		 }

		 if (str.indexOf(" ")!=-1){
		    alert(msg)
		    return false
		 }
 		 return true
	}
  }
/** This function for every module in RA.
  * validating the textarea length.
  */
function maxlength(obj,maxvalue,fieldName)
{ 
	var q = eval(TextAreaLength(Trim(obj.value)));
	var r = q-maxvalue;
	var msg = "Sorry, you have entered "+q+" characters. "+
       "Please enter up to "+maxvalue+" characters in "+fieldName+". Your text "+
       "exceeds by "+r+" characters.";
	if(q > maxvalue) {
		alert(msg);
		obj.focus();
		return false;
	} else { 
		return true;
	}
}//end maxlength()

//Text area value langth issue
//Add function by Hariom Soni on 08/10/2007
//Start function TextAreaLength()
function TextAreaLength(val)
{
        var browser=currentBrowserName();
        var len=0;
        len=val.length;
        if(browser!='IE')
        {
            for(i=0;i<val.length;i++)
            {
                //alert(escape(val[i]));
                if(escape(val[i])=='%0A')
                    len++;
            }
        }
        return len;
}
//end function TextAreaLength()

/*function newwin(frmName,fieldName)
{
	window.open("jsp/brand.jsp?frmName="+frmName+"&fieldName="+fieldName,'preview','width=500,height=300')
}
*/
<!-- Function to trim the values -->
function Trim(TRIM_VALUE){
    if(TRIM_VALUE.length < 1){
        return"";
    }
    TRIM_VALUE = RTrim(TRIM_VALUE);
    TRIM_VALUE = LTrim(TRIM_VALUE);
    if(TRIM_VALUE==""){
        return "";
    }else{
        return TRIM_VALUE;
    }
} //End Function

function RTrim(VALUE){
    var w_space = String.fromCharCode(32);
    var v_length = VALUE.length;
    var strTemp = "";
    if(v_length < 0){
        return"";
    }
    var iTemp = v_length -1;
    while(iTemp > -1){
        if(VALUE.charAt(iTemp) == w_space){
        }else{
            strTemp = VALUE.substring(0,iTemp +1);
            break;
        }
        iTemp = iTemp-1;
    } //End While
    return strTemp;
} //End Function

function LTrim(VALUE){
    var w_space = String.fromCharCode(32);
    if(v_length < 1){
        return"";
    }
    var v_length = VALUE.length;
    var strTemp = "";
    var iTemp = 0;
    while(iTemp < v_length){
        if(VALUE.charAt(iTemp) == w_space){
        }else{
            strTemp = VALUE.substring(iTemp,v_length);
            break;
        }
        iTemp = iTemp + 1;
    } //End While
    return strTemp;
} //End Function


function checkSPLChar(frm,objA,txtName){
	 var charsToAllow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
	 var fldVal2 = '';
	 fldVal = eval("parent.bott."+frm+"."+objA);
	 len  = fldVal.value.length;
	 for (i=0 ; i < len ; i++){
		  if (charsToAllow.indexOf(fldVal.value.charAt(i))!=-1){
	   		fldVal2  = fldVal.value;
		  }else{
	  		alert("Only alphabets & numbers are allowed in "+txtName);
	  		fldVal.focus();
	  		return false;
		  }
	 }

	 return true;
 }//checkSPLChar

/*function addBrand(){
	var brandName = document.forms['regForm'].mybrand_name.value;
	var selectBrandName = document.forms['regForm'].brands;
    if(Trim(brandName)!="") {
		newOption = new Option(brandName);
		selectBrandName.options[document.forms['regForm'].brands.options.length]=newOption;
        document.forms['regForm'].mybrand_name.value = "";
        document.forms['regForm'].mybrand_name.focus();
        return false;
    } else {
		alert("Please enter brand name.");
		document.forms['regForm'].mybrand_name.focus();
		return false;
	}//else
	return true;

}//addBrand()*/

function chkOtherBussProd()
{
	var otherProd = eval(document.forms['regForm'].otherProd);
	var otherBuss = eval(document.forms['regForm'].bussTypeOther);

	if(Trim(otherProd.value)!="") {
		for(i = 0; i < document.forms['regForm'].product.length; ++i){
			if(document.forms['regForm'].product[i].value=="Others") {
				document.forms['regForm'].product[i].checked = true;
		    }//if
		}//for

	}//if

	if(Trim(otherBuss.value)!="") {
		for(j = 0; j < document.forms['regForm'].busType.length; ++j) {
			if(document.forms['regForm'].busType[j].value=="Others") {
				document.forms['regForm'].busType[j].checked = true;
			}//if
		}//for
	}//if
}//end chkOtherBussProd()

/** This function for popup's in RA
  * to hide the print button while taking print out.
  */
function fnPrint()
{
		document.getElementById('print').style.visibility='hidden';
		window.print();        
        document.getElementById('print').style.visibility='visible';
}//end fnPrint()

/** This function for Registration & Use of Seal Guidelines
 *  added by sekhar for adding new brands.
 */

function addNewBrands(formName,fieldName,optName){
	formName="forms['"+formName+"']";
	//alert("inside NewBrands\n"+formName);
	var brandName = eval("document."+formName+"."+fieldName);
	var selectBrandName = eval("document."+formName+"."+optName);
    if(Trim(brandName.value)!="") {
		if(chkDupBrands(brandName.value,formName,optName)) {
			//newOption = new Option(brandName.value);
			//selectBrandName.options[selectBrandName.options.length]=newOption;
			selectBrandName.options[selectBrandName.options.length]=new Option(brandName.value,brandName.value,false,false)
	  }
	  brandName.value = "";
	  brandName.focus();
	  return false;
    } else {
		alert("Please enter brand name.");
		brandName.focus();
		return false;
	}//else
    return true;
}//NewBrands()

/** This function for Registration & Use of Seal Guidelines
 *  To remove brands from already existing brands.
 */
function removeBrands(formName,optName,hiddenRemField,count) {
	formName="forms['"+formName+"']";
	var selectedBrand = eval("document."+formName+"."+optName);
    var hiddenRemBr = eval("document."+formName+"."+hiddenRemField);
	var remCount = eval("document."+formName+"."+count);
	if(remCount.value=="") { 
		count = 0;
		remBr= "";
	} else { 
		count = remCount.value;
		remBr = hiddenRemBr.value; 
	}
    //var remBr= "";
    if(selectedBrand.length==0) {
        alert("There is no brands to remove.");
        return false;
    }
    if(selectedBrand.selectedIndex==-1) {
		alert("Please select brand name to remove from the list.");
		selectedBrand.focus();
		return false;
	} else {
        //var count = 0;
        for(i=selectedBrand.options.length-1;i>=0;i--) {
			if(selectedBrand.options[i].selected) { 
                count++;
			  if(count==1){
				remBr = selectedBrand.options[i].value;
			  } else {
				remBr = remBr +"~~~"+ selectedBrand.options[i].value;
			  }                
                selectedBrand.remove(i);
				selectedBrand.focus();
			}//if
		}//for
        hiddenRemBr.value = remBr;
		remCount.value = count;
	}//else
	selectedBrand.focus();
	return false;
}//end removeBrands()

/** This function for Registration & Use of Seal Guidelines
 *  To check for duplicate brands.
 */
//checking for duplicate brands.
function chkDupBrands(newBrand,formName,optName) {
	var existBrands = eval("document."+formName+"."+optName);
	for(i=0;i<existBrands.length;i++) {
		if(Trim(existBrands.options[i].text.toLowerCase())==Trim(newBrand.toLowerCase())) {
			alert("Already brand exist in the list. Please check.");
			return false;
		}//if
	}//for
	return true;
}//end chkDupBrands()

function chkRegion() {
	var regType = eval(document.TheForm.other_Region);
	if(Trim(regType.value)!="") {
		if(document.TheForm.reg1.checked) {
			alert("Please check regional area.");
			regType.focus();
			return false;
		}
	}
}
/** This function for Use of Seal Guidelines
  * added by sekhar for Update to check other product & other material.
  */
function chkOtherProdNMat() {
	var otherProd = eval(document.TheForm.other_Seal_Prod);
	var otherMat = eval(document.TheForm.other_Material);

	if(Trim(otherProd.value)!="") {
		for(i=0;i<document.TheForm.product.length;i++) {
			if(document.TheForm.product[i].value=="Others") {
							document.TheForm.product[i].checked = true;
		    }//if
		}//for
	}//if

	if(Trim(otherMat.value)!="") {
			for(i=0;i<document.TheForm.material.length;i++) {
				if(document.TheForm.material[i].value=="Others") {
								document.TheForm.material[i].checked = true;
			    }//if
			}//for
	}//if

}//end chkOtherProdNMat()

/** This function for Use of Seal Guidelines
  * added by sekhar for populate the other's textbox in Request Artwork
  */
function showOthers(){
  var mat = eval(document.TheForm.material_ID);
  for (i=0;i<mat.options.length ;i++ )
  {
	  if(mat.options[i].selected) {		
		if(mat.options[i].value=="Others") {
			document.all.others.style.visibility="visible";
		} else {
			document.all.others.style.visibility="hidden";
		}//else
	  }//if
  }//for
}//end showOthers()

/*
 * added by sekhar to unselect the brands
 */
function unselectBrands(formName,optName)
{
   var selectBrandName = eval("document."+formName+"."+optName);
   for(i=0;i<selectBrandName.length;i++)
   {
    if(selectBrandName.options[i].selected==true) {  
        selectBrandName.options[selectBrandName.selectedIndex].selected = false;
       // return true;
    }//if
   }//for
}//end unselectBrands()

/** This function for Registration
  * to verify user id.
  */
function verifyEmail(formName,emailId,verEmail)
{    
		var email = eval("window.parent.frames['bott'].document.forms['"+formName+"']."+emailId);
		var emailVerify = eval("window.parent.frames['bott'].document.forms['"+formName+"']."+verEmail);
		if(Trim(email.value) != "" && Trim(emailVerify.value) != "")
		{
			if(Trim(email.value) != Trim(emailVerify.value))
			{
				emailVerify.focus();
				return false;

			}
		}
		return true;
}//end verifyEmail()

/** This function for Use of Seal Guidelines
  * New Submission and Update
  */
function displayContentInfo()
{
    var obj = eval(document.forms['TheForm'].prod_Content);
    for(i=0;i<obj.length;i++)
    {
        if(obj[i].checked && obj[i].value=="5")
        {        
            document.getElementById("contentInfo").style.display = "";
        } else {
            document.getElementById("contentInfo").style.display = "none";
        }//else
    }//for
}//end displayContentInfo()

/** This function for Use of Seal Guidelines
  * New Submission and Update
  */
function subProceed()
{
    var from = document.forms['TheForm'].from.value;
	obj = eval(document.forms['TheForm'].sub_Proceed);
    for(i=0;i<obj.length;i++)
    {     
        if(obj[i].checked && obj[i].value=="N")
        {
            if(from=="UseOfSeal")
			{ 
				document.forms['TheForm'].action = "sealArtwork.do?actionMode=RACSealMain";
	            document.forms['TheForm'].submit();
		        window.open("jsp/seal_bot.jsp","xbott");
			} else {				
				document.forms['TheForm'].action = "mfilter.do?ovType=sealmem";
	            document.forms['TheForm'].submit();
		        window.open("jsp/seal_bot1.jsp","xbott");
			}//else
        }//if
    }//for
}//end subProceed()
/*
 * Function to validate special characters in email id.
 */
function checkSPLCharForEmail(obj,msg){

	 var charsToAllow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-@_";
	 var fldVal2 = '';
	 fldVal = obj;
	 len  = Trim(fldVal.value).length;
	 for (i=0 ; i < len ; i++){
		  if (charsToAllow.indexOf(fldVal.value.charAt(i))!=-1){
			fldVal2  = fldVal.value;
		  }else{
			alert(msg);
			fldVal.value="";
			fldVal.focus();
			return false;
		 }
	 }//for
	 //return true;
 }//checkSPLCharForEmail

/* This function is used for validating date field(not less than current date) 
 * New Submission(Seal).
 */
function dateValidate(formName,fieldName,msg) { 
		  tDate = eval("window.parent.frames['bott'].document.forms['"+formName+"']."+fieldName);
          if (Trim(tDate.value) != "") {
            ctMonth = fnChangeDate(tDate.value.substr(0,3));
            ctDay = tDate.value.substr(4,2); 
            ctYear = tDate.value.substr(7,4);
            var dToday = new Date();
            var currDate = dToday.toUTCString(); 
            currMonth = fnChangeDate(currDate.substr(8,3)); 
            currDay   = currDate.substr(5,2); 
            currYear  = currDate.substr(12,4); 
            var currToday = new Date(currYear, --currMonth, currDay);
            var ctDate = new Date(ctYear,--ctMonth,ctDay);
            if (ctDate < currToday) {
               alert(msg);
               tDate.focus();
               return false;
            }//inner if
		}//if
}//end dateValidate()
function fnChangeDate(strMonth)
   {
     var iMonth = "";
     switch (strMonth)
   	{
   	case "Jan" : iMonth = "01";
   		 break;
   	case "Feb":  iMonth = "02";
   		 break;
   	case "Mar" : iMonth = "03";
   		 break;
   	case "Apr" : iMonth = "04";
   		 break;
   	case "May" : iMonth = "05";
   		 break;
   	case "Jun" : iMonth = "06";
   		 break;
   	case "Jul" : iMonth = "07";
   		 break;
   	case "Aug" : iMonth = "08";
   		 break;
   	case "Sep" : iMonth = "09";
   		 break;
   	case "Oct" : iMonth = "10";
   		 break;
   	case "Nov" : iMonth = "11";
   		 break;
   	case "Dec" : iMonth = "12";
   		 break;
   	}
   return iMonth;
}  // End function fnChangeDate()

/* This function is used for Use of Seal --> New Submission
 */
function prodPercentBlank() {
	var perVal = eval("document.TheForm.blend_RA_Cer_Content");
	var prodVal = eval("document.TheForm.prod_Content");
	for(i=0;i<perVal.length;i++) {
		if(perVal[i].value!="" && perVal[i].checked && perVal[i].value=="Y") {
			for(j=0;j<prodVal.length;j++) {
				prodVal[j].checked = false;
			}//for
		}//if
	}//for
}//end prodPercentBlank()

/* 
 * This function used for User agreement 
 */
function userAgreement()
{
	mywindow = window.open('../download/User_Agreement.htm','Privacy','width=600,height=475,scrollbars=1,resizable=1')
    mywindow.moveTo(100,0);
}//end userAgreement()

/* 
 * This function used for Private policy 
 */
function privatePolicy()
{
	mywindow1 =  window.open('../download/Privacy_Policy.htm','Privacy','width=600,height=475,scrollbars=1,resizable=1')
	mywindow1.moveTo(100,0);
}//end privatePolicy()

//deleting uploaded files
function delUploadedFile(formName,optName,hiddFieldName,remBrValue,count)
{     
	var Cou = eval("document."+formName+"."+count);
	var selectedBrand = eval("document."+formName+"."+optName);
	var remDesBr = eval("document."+formName+"."+hiddFieldName);
	var remBrVal = eval("document."+formName+"."+remBrValue); 
	if(Cou.value=="")
    {
		count = 0;
		remBr= ""; 
		remVal = "";
	} else {
		count = Cou.value;
		remBr= remDesBr.value; 
		remVal = remBrVal.value;
	}
	
	if(selectedBrand.length==0) {
        alert("There is no uploaded design files to remove.");
        selectedBrand.focus();
        return false;
    }
    if (selectedBrand.selectedIndex == -1)
    {
        alert("Please select uploaded files to delete.");
        selectedBrand.focus();
        return false;
    } else {
        var del = confirm("Do you want to remove the uploaded files?");
		//var count = 0;
	   if (del) {
        for(i=selectedBrand.options.length-1;i>=0;i--) {
			if(selectedBrand.options[i].selected) { 
                count++;
			  if(count==1){
				remBr = selectedBrand.options[i].value;
				remVal = selectedBrand.options[i].text;
			  } else {
				remBr = remBr +"~~~"+ selectedBrand.options[i].value;
				remVal = remVal +"~~~"+ selectedBrand.options[i].text;
			  }                
                selectedBrand.remove(i);
				selectedBrand.focus();				
            }//if
		}//for
		remDesBr.value = remBr;
		remBrVal.value = remVal;
		Cou.value = count;

           // document.TheForm.action = "mOverviewNewApp.do?actionMode=update";
           // document.TheForm.submit();
        }//if
    }//else
	selectedBrand.focus();
	return false;
	
}//end delUploadedFile()

function currentBrowserName()
{
	var str=navigator.userAgent;
	if(str.indexOf("Safari")>=0)
		return "Safari";
	else if(str.indexOf("MSIE")>=0)
		return "IE";
	else if(str.indexOf("Firefox")>=0)
		return "Firefox";
	else return "";
}
/** Added by sekhar to validate transaction date 12 months prior to current month 
  * My Transactions --> Consume & Sell
  */
function validatePriorDate() {
	  var transDate = window.parent.frames['bott'].document.forms['salesEnt'].transactionDate;      
	  if(Trim(transDate.value)!="") {
		  ctMonth = fnChangeMonthToNUM(transDate.value.substr(0,3));
		  ctDay = transDate.value.substr(4,2);
		  ctYear = transDate.value.substr(7,4);
		  var dToday = new Date(); 
		  var currDate = dToday.toUTCString();
		  //getting browser name - refer currentBrowserName() function
		  var browserName = currentBrowserName();
		  //checking browser type
		  if(browserName=="IE") {
			  if(parseInt(currDate.substr(5,2))<10) { 
				  currMonth = parseInt(fnChangeMonthToNUM(currDate.substr(7,3)));
				  currDay   = currDate.substr(5,2);
				  currYear  = currDate.substr(11,4);
			  } else {			
				  currMonth = parseInt(fnChangeMonthToNUM(currDate.substr(8,3)));
				  currDay   = currDate.substr(5,2);
				  currYear  = currDate.substr(12,4);
			  }
		  } else {
			   currMonth = parseInt(fnChangeMonthToNUM(currDate.substr(8,3)));
			   currDay   = currDate.substr(5,2);
			   currYear  = currDate.substr(12,4);
		  }
		  if(currMonth=="12") {
			  tempMonth = 1;
			  tempYear = currYear;
		  } else {
			  tempMonth = parseInt(currMonth+1);
			  tempYear = parseInt(currYear-1);
		  }
		  var currToday = new Date(tempYear, --tempMonth, 01);
		  var ctDate = new Date(ctYear,--ctMonth,ctDay);
		  if (ctDate < currToday) {
			  alert("Transaction date cannot be greater than 12 months prior to current date.");
			  transDate.focus();
			  return false;
		  } else {
			  return true;
		  }//else
	  }//if
}
function fnChangeMonthToNUM(strMonth)
   {
     var iMonth = "";
     switch (strMonth)
   	{
   	case "Jan" : iMonth = "1";
   		 break;
   	case "Feb":  iMonth = "2";
   		 break;
   	case "Mar" : iMonth = "3";
   		 break;
   	case "Apr" : iMonth = "4";
   		 break;
   	case "May" : iMonth = "5";
   		 break;
   	case "Jun" : iMonth = "6";
   		 break;
   	case "Jul" : iMonth = "7";
   		 break;
   	case "Aug" : iMonth = "8";
   		 break;
   	case "Sep" : iMonth = "9";
   		 break;
   	case "Oct" : iMonth = "10";
   		 break;
   	case "Nov" : iMonth = "11";
   		 break;
   	case "Dec" : iMonth = "12";
   		 break;
   	}
   return iMonth;
}  // End fnChangeMonthToNUM()
/* Added by Sekhar for Browser Compatibility Issue
 * Calendar is populating based on Browser
 * Use of Seal --> New Submission, Update
 */
function calendarPopulate(formName,fieldName) {
	var browser=currentBrowserName();
	if(currentBrowserName()=="IE")
	{   
		fPopCalendar(eval("document.forms['"+formName+"']."+fieldName),eval("document.forms['"+formName+"']."+fieldName));return false;
	}
	else
	{  
		cal1xx.select(eval("document.forms['"+formName+"']."+fieldName),'dt1cal','NNN dd,y'); return false;		
	}
}

function checkNumeric(val)
{
	//alert(parseInt(val)); 
	if(parseFloat(val)!=val)
	{
		//alert('false');
		return false;
	}
	else
	{
		//alert('true');
		return true;
	}
}
/** This function is used to include the copyright in HTML bottom pages.
  */
function copyRightInclude(id, url) {
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id +
   "passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }
}

function fnOpenExim() {
	window.open("http://www.eximware.net","mywindow")
}