function gotoCustomSearch () {
	var q = document.getElementById("q").value;
	var cx = document.getElementById("cx").value;
	var cof = document.getElementById("cof").value;
	window.location = "#"+q+"&cx="+cx+"&cof="+cof;
	return false;
}






function gotoCustomSearchMain () {
	var searchTextMain = document.getElementById("search").value;

	
alert("hi");
window.location = "#"+searchTextMain;
return false;


}





function hiMain () {
	//alert("dfsgkj");

if (event.keyCode == 13) {

    var searchText = document.getElementById("search").value;

	window.location = "#"+searchText;

	return false;
	
	}
}



function hi () {
	//alert("dfsgkj");

    var searchText = document.getElementById("searchText").value;

	window.location = "#"+searchText;

	return false;
	
}



function signin () {
	var searchText = document.getElementById("1").value;
	document.location.href = "download-pdf.aspx?search=";


	document.cookie = 'hi=searchText test; expires=Fri, 3 Aug 2001 20:47:11 UTC; path=/'
	
	//alert(document.cookie);



 


}


function gotoCustomSearch1 () {
	
	document.getElementById("searchText").value="";
	
document.getElementById("search").value="";
//onkeydown="if (event.keyCode == 13) {document.getElementById('btnSearch').onClick()}"

}



function navChange(formName, popupName, target) {

	var popup = document.getElementById(popupName);;

	if (popup.options[popup.selectedIndex].value != "") {

		window.open(popup.options[popup.selectedIndex].value, '_parent');

		popup.selectedIndex=0;

	}

}



function createCookie() {
	 var value =document.getElementById("useremail").value;
	
	document.cookie ="chkAutoFormPlususerEmail="+value+"; path=/";
    //alert(document.cookie);
	 //document.getElementById('validid').style.display = 'inline';
	
	document.location = "/sign-in.aspx";


   return false;

}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
function createCookiejp(currentNode) {
	 
	

	document.cookie ="currentNode="+currentNode+"; path=/";

window.open("/hear-podcast.aspx?vid="+currentNode);

}

function createCookiejpweb(currentNode) {

document.cookie ="currentNode="+currentNode+"; path=/";
window.open("/watch-webinars.aspx?vid="+currentNode);

}
