var popupwindow;
popupwindow = null;

function popLink(x) {
    var strF;

    strF = "toolbar=yes"
    strF = strF + ",location=yes"
    strF = strF + ",directories=no"
    strF = strF + ",status=yes"
    strF = strF + ",menubar=yes"
    strF = strF + ",scrollbars"
    strF = strF + ",resizable=yes"


    popupwindow=window.open('','popupwindow',strF);

    if ( navigator.appCodeName.indexOf("Mozilla") != -1 && (navigator.appVersion.charAt(0) > 2 || navigator.appVersion.charAt(1) != '.') )
    {
     	popupwindow.focus();
    }
	popupwindow.location.href=x;
};

function doSearch(strSearchTargetPortal) {

	//url = '/modules/search/default2.asp?portal=';
	var url = '/modules/search/default2.asp';
	/*for(i=1;i < arr_links.length;i++) {
		url += arr_links[i];
		if (i < arr_links.length-1) url += '_';
	}*/
	
	//alert(document.forms[0]);
 
	//url += '&txtSearchSpec='+escape(document.forms[0].txtSearchSpec.value)+'&submit.x=0&submit.y=0';
	//url += '?txtSearchSpec='+escape(document.forms[0].txtSearchSpec.value);
	url += '?txtSearchSpec='+escape(document.forms[0].txtSearchSpec.value);
	url = '/index.asp?id='+strSearchTargetPortal+'&data=1,URL,'+escape(url);
	 
 

	top.location = url;
}

