﻿// JScript File

// ===================================================================
// ========= Function for Form Input Effect ==================
/*function fncChkExtn(x)
{ 
	var id_value = x.value;
	if(id_value != '')
	{ 
		var valid_extensions = /(.doc|.docx|.txt)$/i;   
		if(!valid_extensions.test(id_value))
		{ 
			alert('Please upload MSWord or Text Format Files!')
		}
	} 
}*/
// ===================================================================


// ===================================================================
// ========= Function for Form Input Effect ==================

/*function fncChangeClassName(x)
{
	x.className="clsFrmTextBoxOnFocus";
}

function fncResetClassName(x,clsName)
{
	x.className=clsName;
}*/

function fncFormTextBoxOnFocus(x)
{
	x.className="clsFrmTextBoxOnFocus";
}

function fncFormTextBoxOnBlur(x,strClassName)
{
	x.className=strClassName;
}

// ===================================================================

// ===================================================================
// ========= Function for popup Window ===============================
function OpenWindow(url)
{
    window.open(url,"","width=500, height=500, status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=yes, scrollbars=yes");
	return false;
}
// ===================================================================

// ===================================================================
// ========= Function for image rollover =============================
function roll(img_name, img_src)
{
    document[img_name].src = img_src;
}
// ===================================================================

// ===================================================================
// ========= Function for image rollover border =============================
function rollborder(img_name)
{
    document[img_name].border = '2px';
}
// ===================================================================


// ===================================================================
// Management Team page Accordian Functions ==========================

function fncPlusAC()
{
    document.getElementById("divPlusAC").style.display="none";
    document.getElementById("divMinusAC").style.display="block";
    document.getElementById("divAC").style.display="block";
}
function fncMinusAC()
{
    document.getElementById("divPlusAC").style.display="block";
    document.getElementById("divMinusAC").style.display="none";
    document.getElementById("divAC").style.display="none";
}

function fncPlusAD()
{
    document.getElementById("divPlusAD").style.display="none";
    document.getElementById("divMinusAD").style.display="block";
    document.getElementById("divAD").style.display="block";
}
function fncMinusAD()
{
    document.getElementById("divPlusAD").style.display="block";
    document.getElementById("divMinusAD").style.display="none";
    document.getElementById("divAD").style.display="none";
}

function fncPlusSB()
{
    document.getElementById("divPlusSB").style.display="none";
    document.getElementById("divMinusSB").style.display="block";
    document.getElementById("divSB").style.display="block";
}
function fncMinusSB()
{
    document.getElementById("divPlusSB").style.display="block";
    document.getElementById("divMinusSB").style.display="none";
    document.getElementById("divSB").style.display="none";
}

function fncPlusZP()
{
    document.getElementById("divPlusZP").style.display="none";
    document.getElementById("divMinusZP").style.display="block";
    document.getElementById("divZP").style.display="block";
}
function fncMinusZP()
{
    document.getElementById("divPlusZP").style.display="block";
    document.getElementById("divMinusZP").style.display="none";
    document.getElementById("divZP").style.display="none";
}

function fncPlusVRO()
{
    document.getElementById("divPlusVRO").style.display="none";
    document.getElementById("divMinusVRO").style.display="block";
    document.getElementById("divVRO").style.display="block";
}
function fncMinusVRO()
{
    document.getElementById("divPlusVRO").style.display="block";
    document.getElementById("divMinusVRO").style.display="none";
    document.getElementById("divVRO").style.display="none";
}

function fncPlusMap()
{
    document.getElementById("divPlusMap").style.display="none";
    document.getElementById("divMinusMap").style.display="block";
    document.getElementById("divMap").style.display="block";
}
function fncMinusMap()
{
    document.getElementById("divPlusMap").style.display="block";
    document.getElementById("divMinusMap").style.display="none";
    document.getElementById("divMap").style.display="none";
}


function fncPlus(strPlusID,strMinusID,strDivSumID,strDivMainID)
{
	eval("document.getElementById('"+strPlusID+"').style.display='none'");
	eval("document.getElementById('"+strMinusID+"').style.display='block'");
	eval("document.getElementById('"+strDivSumID+"').style.display='none'");
	eval("document.getElementById('"+strDivMainID+"').style.display='block'");
}

function fncMinus(strPlusID,strMinusID,strDivSumID,strDivMainID)
{
	eval("document.getElementById('"+strPlusID+"').style.display='block'");
	eval("document.getElementById('"+strMinusID+"').style.display='none'");
	eval("document.getElementById('"+strDivSumID+"').style.display='block'");
	eval("document.getElementById('"+strDivMainID+"').style.display='none'");
}

function fncPlus_PR(strPlusID,strMinusID,strDivContentID)
{
	eval("document.getElementById('"+strPlusID+"').style.display='none'");
	eval("document.getElementById('"+strMinusID+"').style.display='block'");
	eval("document.getElementById('"+strDivContentID+"').style.display='block'");
}

function fncMinus_PR(strPlusID,strMinusID,strDivContentID)
{
	eval("document.getElementById('"+strPlusID+"').style.display='block'");
	eval("document.getElementById('"+strMinusID+"').style.display='none'");
	eval("document.getElementById('"+strDivContentID+"').style.display='none'");
}

// ===================================================================

// ==================================================================
// Home Page TextBox Text Show/Remove Functions =====================
function fncClickText(x)
{
    if (x.value=="search here")
    {
    x.value=""; 
    }
    
}
function fncClickOut(x)
{
    if(x.value=="")
    {
        x.value="search here";
    }
}

function fncClickText2(x)
{
    if (x.value=="Please type your ref no here")
    {
    x.value=""; 
    }
    
}
function fncClickOut2(x)
{
    if(x.value=="")
    {
        x.value="Please type your ref no here";
    }
}

function fncClickText3(x)
{
    if (x.value=="Please type your email here")
    {
    x.value=""; 
    }
    
}
function fncClickOut3(x)
{
    if(x.value=="")
    {
        x.value="Please type your email here";
    }
}
// ==================================================================