﻿/////////////////////////////////////////////////
//UICustomScript.js
//Contains javascript specific to the customer's custom layout.
//A Function with the same name as the function in UISystemScript.js will override that function.
/////////////////////////////////////////////////

function GetKit()
{
	var varList = new Array("S31","S23","433","425","511","521","513","523","533","515","525","535","531","435","S33","111","121","113","123","133","211","221","215","131","213","223","233","313","315","225","235","311","321","231","331","325","311","321","323","333","315","325","313","323","333","335","411","421","331","335","431","413","423","415","S11","S21","S13");
	var idList = new Array("MPK1","MPK1","MPK10","MPK10","MPK10","MPK10","MPK10","MPK11","MPK11","MPK11","MPK11","MPK11","MPK11","MPK11","MPK2","MPK3","MPK3","MPK3","MPK4","MPK4","MPK4","MPK4","MPK4","MPK4","MPK4","MPK5","MPK5","MPK5","MPK5","MPK5","MPK5","MPK5","MPK5","MPK5","MPK6","MPK6","MPK6","MPK6","MPK6","MPK6","MPK6","MPK6","MPK6","MPK6","MPK7","MPK7","MPK7","MPK7","MPK7","MPK7","MPK8","MPK8","MPK9","MPK9","PK1","PK2","PK2");
	var ddl0 = document.getElementById("ddlpsHome");var ddl1 = document.getElementById("ddlpsStuff");var ddl2 = document.getElementById("ddlpsPeople");
	var selVal0 = ddl0.options[ddl0.selectedIndex].value;var selVal1 = ddl1.options[ddl1.selectedIndex].value;var selVal2 = ddl2.options[ddl2.selectedIndex].value
	var sKey = selVal0 + selVal1 + selVal2;
	if (sKey.indexOf('-select-') == -1)
	{
		var sId;var bFound = false;						
		for (i = 0;i < varList.length;i++)
		{
			if (varList[i] == sKey)
			{												
				sId = idList[i];
				bFound = true;
				break
			}
		}
		if (bFound)
		{
			alert(sId);
			/*location.href = 'ProductDetail.aspx?p=' + sId;*/
		}
		else
		{
			alert("Sorry, no information is available for this combination.\nPlease adjust your selections.");
		}
	}
}	


function mLogonSafetyNet()
	{
		var vLogonName = document.getElementById('LogonName').value;
		var vLogonPassword = document.getElementById('LogonPassword').value;
		var vURL = 'http://app.onlinesafetynet.com/Logon.asp?LogonName=' + vLogonName + '&LogonPassword=' + vLogonPassword + '&Logon=Logon';
		//alert(vURL);
		location.href = vURL;
	}
	
function mSetMenu(vMenuId)
{
}

function mGetMenu()
{
}
