
lastDiv = null;
function onMouseOverDiv(theDiv)
{	
	theDiv.style.cursor = "hand";
	theDiv.style.border = "1 solid #fd9c04";	
}

function onMouseOutDiv(theDiv)
{
	theDiv.style.border = "1 solid #CCCCCC";
}

function divClick(theDiv,filename) {
	
	if (lastDiv) {
		lastDiv.style.border = "1 solid #CCCCCC";
	}
	lastDiv = theDiv;
	
	theDiv.style.border = "1 solid #ff0000";
	theDiv.style.cursor = "hand";
	
	if(document.getElementById("FileToDelete")!=null)
	{
		document.getElementById("FileToDelete").value = filename;
	}
}

function gotoFolder(newfolder) {
	window.navigate("ftb.imagegallery.aspx?frame=1&cif=" + newfolder);
}		

function returnImage(imagename,width,height) {
	var arr = new Array();
	arr["filename"] = imagename;  
	arr["width"] = width;  
	arr["height"] = height;			 
	window.parent.returnValue = arr;
	window.parent.close();	
}	

function ConfirmSubmitGuestbook()
{
	var result=window.confirm("多谢您的留言，管理员将在第一时间予以审核和回复！");
	
	/*
	if(result==false)
	{
		window.event.returnValue =false;
	}
	*/
}

function KeyDownForSubmit() {
    if (event.keyCode == 13) {
        event.returnValue = false;
        event.cancel = true;
        aspnetForm.ctl00$MainContent$ProductList$ctl00$btnSearch.click();
    }
}

function KeyDownForSubmit2() {
    if (event.keyCode == 13) {
        event.returnValue = false;
        event.cancel = true;
        aspnetForm.ctl00$MainContent$ProductDetail$ctl00$btnSearch.click();

    }
}


function AddFav()
{ 
	url = "http://www.ra-cn.com/en-US/Default.html"; 
	title = "Red Apple Hardware of Furniture Co., Ltd."; 
	window.external.AddFavorite(url,title); 
}
