// common.js
<!--
function viewBigger(imageUrl,alt){
win=window.open("","","width=310,height=370,scrollbar=yes,top=5,left=5");
win.document.write("<html>\n<link href='../css/text_en.css' rel='stylesheet' type='text/css'>\n<body style='margin:0px;'>\n"+
	"<table cellpadding='0' cellspacing='0' border='0' width='100%'>\n<tr><td align='center' id='showPic'><img src='"+imageUrl+"' border='0' alt='"+alt+"'></td></tr>\n"+
	"<tr><td align='center' height='10'></td></tr>\n"+
	"<tr><td align='center'>");
win.document.write("</td></tr>\n</table>\n</body>\n</html>")
}

function viewMovie(flashUrl,movieWidth,MovieHeight){
win=window.open("","","width="+movieWidth+",height="+MovieHeight+",scrollbar=no,top=5,left=5");
win.document.write("<body style='margin:0'>");
win.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+movieWidth+'" height="'+MovieHeight+'">');
win.document.write('<param name="movie" value="'+flashUrl+'">');
win.document.write('<param name="quality" value="best">');
win.document.write('<embed src="'+flashUrl+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  width="'+movieWidth+'" height="'+MovieHeight+'"></embed></object>')
win.document.write("</body>");
}
function changeHdl(eml,secondary,selVar){

	var pid = eml.value; 
	if(pid==""){    	
    	secondary.options.length=1; 
    	secondary.options[0].text="-All-"; 
    	secondary.options[0].value="";
    	return;    }
    
	var leng=0;	for(var i=0;i<dataArrCity.length;i++){
		var tempArr = dataArrCity[i].split(',');
		if(tempArr[0]==pid)	leng++;	
	}		

	secondary.options.length=leng+1;
	var index = 1;	
	secondary.options[0].text="-All-"; 
    	secondary.options[0].value="";
    	
	for(var i=0;i<dataArrCity.length;i++){
		var tempArr = dataArrCity[i].split(',');		

		if(tempArr[0]==pid){
		 secondary.options[index].value=tempArr[1];
		 secondary.options[index].text=tempArr[2];
		 if(selVar!=null&&tempArr[1]==selVar) secondary.options[index].selected= true;
		 index++;
		 }	
	}
}

function changeHdl2(eml,secondary,selVar){
	if(dataArr){
		var pid = "";
	
		if(eml != null && eml.value != ""){
			pid = eml.value;    
		}
	
		if(secondary != null && secondary.options != null){
			
			if(pid==""){    	
		    	secondary.options.length=1; 
		    	secondary.options[0].text="-SELECT-"; 
		    	secondary.options[0].value="";
		    	return;    }
			var leng=0;	for(var i=0;i<dataArr.length;i++){
				var tempArr = dataArr[i].split(',');
				if(tempArr[0]==pid)	leng++;	}		
			secondary.options.length=leng+1;
			var index = 1;	
			secondary.options[0].text="-SELECT-"; 
		    	secondary.options[0].value="";
			for(var i=0;i<dataArr.length;i++){
				var tempArr = dataArr[i].split(',');		
				if(tempArr[0]==pid){
				
				 secondary.options[index].value=tempArr[1];
				 secondary.options[index].text=tempArr[2];
				 if(selVar!=null&&tempArr[1]==selVar) secondary.options[index].selected= true;
				 index++;
				 }	}
	
		}
	}
}


function changeHdl3(eml,secondary,selVar){
	if(feedbackDataArr){
		var pid = "";
		if(eml != null && eml.value != ""){
			pid = eml.value;    
		}
		
		if(secondary != null && secondary.options != null){
		
			if(pid==""){    	
		    	secondary.options.length=1; 
		    	secondary.options[0].text="-SELECT-"; 
		    	secondary.options[0].value="";
		    	return;    }
			var leng=0;	for(var i=0;i<feedbackDataArr.length;i++){
				var tempArr = feedbackDataArr[i].split(',');
				if(tempArr[0]==pid)	leng++;	}		
			secondary.options.length=leng+1;
			var index = 1;	
			secondary.options[0].text="-SELECT-"; 
		    secondary.options[0].value="";
			for(var i=0;i<feedbackDataArr.length;i++){
				var tempArr = feedbackDataArr[i].split(',');		
				if(tempArr[0]==pid){
				
				 secondary.options[index].value=tempArr[1];
				 secondary.options[index].text=tempArr[2];
				 if(selVar!=null&&tempArr[1]==selVar) secondary.options[index].selected= true;
				 index++;
				 }	}
	
		}
	}
}

function changeHdl4(eml,secondary,selVar){
	if(dataArr){
		var pid = eml;
	    var html="";
        var eml_obj = document.getElementById("selectsBox1");
        eml_obj.firstChild.firstChild.nodeValue = "-select-";
			for(var i=0;i<dataArr.length;i++){
				var tempArr = dataArr[i].split(',');		
				if(tempArr[0]==pid){
				 str ='<li id="' + tempArr[1] + '" title="'+ tempArr[2] + '"><a href="#" onClick="sent_para1(this);document.proSearchForm.id.value=this.parentNode.id;return false;">' + tempArr[2] + '</a></li>';
				 html=html+str;			 
				 }	
			 }
	var eml_ob = document.getElementById("selectsB");
		document.getElementById("dddddd").innerHTML=html;
	}
}

function mailToFriends(contextpath, friendurl, url, title){
    window.open(contextpath+"/mailtofriend/presendmail.do?url="+url+"&friendurl="+friendurl+"&title="+encodeURI(title),
    'ApplyPermission','width=480,height=460,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=yes, status=no,left=500,top=145');
}
-->