function SendtoFriend(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=625,height=400,left =10,top = 10');");
}
function Upload(URL) {
		popupWin = window.open(URL, 'popup', 'dependent=0,height=500,width=600,screenX=1,left=100,screenY=1,top=20,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0', 'launcher');
		if (window.focus) {
		popupWin.focus();
	}
}	  
function printFile(URL) {
		popupWin = window.open(URL, 'popup', 'dependent=0,height=600,width=700,screenX=1,left=100,screenY=1,top=20,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0', 'launcher');
		if (window.focus) {
		popupWin.focus();
	}
}	  
function Pick_Image(xxx){
//	alert('fsdfdsfsdfsdfsdfd');
		if (!window.opener.closed)
		{
			if (typeof(window.opener.addNews.N_Image) != "undefined") {
				eval("window.opener.addNews.N_Image").value = xxx;				
			}
		}
	
		//alert(window.opener.newProduct.ProductImage.value);
		window.close();
}
function Pick_File(xxx){
//	alert('fsdfdsfsdfsdfsdfd');
		if (!window.opener.closed)
		{
			if (typeof(window.opener.newAdvertise.ad_File) != "undefined") {
				eval("window.opener.newAdvertise.ad_File").value = xxx;				
			}
		}
	
		//alert(window.opener.newProduct.ProductImage.value);
		window.close();
}
function changeto(obj,strClass){
	if(strClass!=""){
		obj.className = strClass;
	}
}
function dropCategory(obj){
	if(obj.className == "on"){
		obj.className = "off";
		document.frmTemp.objdrop.value = "";	
	}
	else{
		obj.className = "on";
		if(document.frmTemp.objdrop.value != ""){			
			identity=document.getElementById(document.frmTemp.objdrop.value);		
			identity.className = "off";
		}
		document.frmTemp.objdrop.value = obj.id;
		//alert(obj.id);
		
	}
}
function dropCategoryBack(obj){	
	if (obj){
		obj.className = "on";
	}
}
