  //Calls  VBScript function showMsg
 function alertMsg(msg)
 {
   showMsg(msg); 	
 }        	 
 function IsNumeric(strString)
 {
   // Check for valid numeric strings  
   var strValidChars = "0123456789";
   var strChar;
   var blnResult = true;
   if (strString.length == 0) return false;
   //test strString consists of valid characters listed above
    for (i = 0; i < strString.length && blnResult == true; i++)
      {
        strChar = strString.charAt(i);
        if (strValidChars.indexOf(strChar) == -1)
        {
          blnResult = false;
          return false;
        }
      }
      return blnResult;
  } 
 function GoToPage(URL)
 {
  window.location.href=URL;
 }   
 function OpenWindow(URL, WinName, Features) 
 {
  window.open(URL, WinName, Features);
 }	   
 function ClearForm(formName)
 {
   var objForm = document.forms[formName];
   objForm.reset();
 }
 function SubmitForm(formName)
 {
   var objForm = document.forms[formName];   
   //objForm.action = "frmSelfServiceStartPage.aspx";
   objForm.submit();
 } 
 /* To Correctly handle PNG transparency in Win IE 5.5 or higher.  */
    function correctPNG() 
    {
    
      for(var i=0; i<document.images.length; i++)
      {
	   var img = document.images[i]
	   var imgName = img.src.toUpperCase()
 	   if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      } 
   }
   
   /* To Correctly handle PNG transparency in Win IE 5.5 or higher.  */
    function correctHeaderPNG(img) 
    {   
   
	   var imgName = img.src.toUpperCase()
 	   if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML

	     }     
      
	 } 
	 
	 //To avoid the error when we type a word like an html tag.
	 /*
	 function CheckSymbol(objField)
		{
			
			var strText=objField.value;
			
			if(strText.indexOf("< ")==-1)
			{
				if(strText.indexOf("<")!=-1)
				{
					objField.value=strText.replace("<","< ");
				}
			}
			
		}
		*/
		function CheckSymbol(objForm)
		{
			
			var strText;
			for(i=0;i<objForm.elements.length;i++)
			{
				if(objForm.elements[i].type=="text" || objForm.elements[i].type=="password" || objForm.elements[i].type=="textarea")
				{
					strText=objForm.elements[i].value;
			
					if(strText.indexOf("< ")==-1)
					{
						if(strText.indexOf("<")!=-1)
						{
							objForm.elements[i].value=strText.replace("<","< ");
						}
					}
				}
				//alert(objForm.elements[i].type)
			}
			/*
			var strText=objField.value;
			
			if(strText.indexOf("< ")==-1)
			{
				if(strText.indexOf("<")!=-1)
				{
					objField.value=strText.replace("<","< ");
				}
			}
			*/
			
		}
