var editor_window = null;
		
		function popUpWin(entity)
		{
			var url;
			
			if(entity == "faq")
			{
				var width="478"
				var height="600"
				var v_scrollbar="yes"
				url = "../utility/faq.aspx";			
			}
			if(entity == "contacts")
			{
				var width="478"
				var height="600"
				var v_scrollbar="yes"
				url = "../utility/contacts.aspx";			
			}
			if(entity == "change_password")
			{
				var width="440"
				var height="300"
				var v_scrollbar="no"
				url = "../user/changepassword.aspx"
			}
			if(entity == "forgot_password")
			{
				var width="400"
				var height="240"
				var v_scrollbar="no"
				url = "../login/forgot_password.aspx"
			}
			if(entity == "calculator")
			{
				var width="750"
				var height="500"
				var v_scrollbar="yes"
				url = "../../calculator/default.asp";			
			}
			if(!editor_window || editor_window.closed)
			{
				editor_window=window.open(url,"","resizable=yes,menubar=no,location=no,toolbar=no,status=no,scrollbars=" + v_scrollbar + ",directories=no,top=50,left=50,width=" + width + ",height="+ height +",Guideline");
				editor_window.document.close();
			}
			else 
			{
				editor_window.close();
				editor_window = window.open(url,"","resizable=yes,menubar=no,location=no,toolbar=no,status=no,scrollbars=" + v_scrollbar + ",directories=no,top=50,left=50,width=" + width + ",height="+ height +",Guideline");
				editor_window.document.close();
				editor_window.focus();
			}			
		}
		
		function chk() {
		if (document.Form1.txtLogin.value==''){
			alert('Please enter User Name.');
			document.Form1.txtLogin.focus();
			return false;
		}
		if (document.Form1.txtPwd.value==''){
			alert('Please enter Password.');
			document.Form1.txtPwd.focus();
			return false;
		}

			return true;
		}
