// JavaScript Document
function chgShow(strIndex){
	if (strIndex==1){
		document.getElementById("RecoRro01").style.display='block';
		document.getElementById("RecoRro02").style.display='none';
		document.getElementById("StrProBg").style.backgroundImage="url(images/ProCate_Bg01.jpg)";
	}else{
		document.getElementById("RecoRro01").style.display='none';
		document.getElementById("RecoRro02").style.display='block';
		document.getElementById("StrProBg").style.backgroundImage="url(images/ProCate_Bg02.jpg)";
	}
}

function  ChkPartnerFrm(){
	if (document.myform.UserName.value==""){
		alert("Please enter Username,4-20 character!");
		document.myform.UserName.focus();
		return false;
	}
	if (document.myform.UserName.value.length<4||document.myform.UserName.value.length>204){
		alert("Please enter the Correct Username,4-20 character!");
		document.myform.UserName.focus();
		return false;
	}
	if (document.myform.PassWord.value==""){
		alert("Please enter PassWord,> 6 character!");	
		document.myform.PassWord.focus();
		return false;
	}
	if (document.myform.PassWord.value==""){
		alert("Please enter the Correct PassWord,> 6 character!");	
		document.myform.PassWord.focus();
		return false;
	}
	
	if (document.myform.PassWord2.value==""){
		alert("Please enter Pass again,> 6 character!");	
		document.myform.PassWord.focus();
		return false;
	}
	if (document.myform.PassWord.value!=document.myform.PassWord2.value){
		alert("Enter the password twice inconsistent,Please re-enter!");	
		document.myform.PassWord.focus();
		return false;
	}
}

function  ProDoSearch(strValue){
	if (strValue=="0"){
		alert("Please Select Product category !");
	}else{
		if (strValue.indexOf("$")>0){
			var Sid,Nid
			Sid=strValue.split("$")[0];
			Nid=strValue.split("$")[1];
			location.href="Product.asp?Sid="+Sid+"&Nid="+Nid;
		}else{
			location.href="Product.asp?Sid="+strValue;
		}
	}
}

function  SolutionDoSearch(strValue){
	if (strValue=="0"){
		alert("Please Select Solution Category !");
	}else{
		location.href="Solution.asp?ID="+strValue;
	}
}
