﻿
function ValiateForm(objUser,objClient) {
    
    if(document.getElementById(objUser) != null)
    {
        if (document.getElementById(objUser).value == "" || document.getElementById(objUser).value == "Username")
        {
            alert("Please enter User Name");
            return false;
        }
    }
    return true;
}
function ValidateFieldValue(objCtrl)
{

}

var TempCode = "";
function PassFocus() {
    var password = document.getElementById('password');
    password.type = "password";
    if (password.value == 'Password' && TempCode =="")
        password.value = '';
}
function KeyCapture(ctrl) {
        TempCode = ctrl.value;
}
function Passblur(ctrl) {
    if (ctrl.value == '') {
        document.getElementById('mockpass').style.display = '';
        document.getElementById('password').style.display = 'none'; 
     }
//    var password = document.getElementById('password');
//    if(password.value == '' || password.value  == 'Password')
//        password.type = "text";
//    if (password.value == '') password.value = 'Password';
 }

 function HideMock() {
     document.getElementById('mockpass').style.display = 'none';
     document.getElementById('password').style.display = '';
 }
 function ShowHelp() {
     if (BoxType == "1") {
         window.location = "https://www.planwellcollaborate.com/product.html";
         //window.location = "http://www.google.com";
     }
     else {
         var w = window.open("WebHelp/icollaborate_User_Guide.htm", "planwellcollaborate", "toolbars=no,scrollbars=yes,resizable=yes,titlebar=no,alwaysRaised=yes,border=0,height=720px, width=1024px")
         if(w !=null)
            w.opener = self;
     }
 }
 function NavigateToIndex() {
    // if (BoxType == "1") {
         //window.location.href = "GoOutFromApplication.aspx";
         window.location.href = "https://www.planwellcollaborate.com";
    // }
     }
   
 
