function ToggleDraft(id){
	if(id.options[id.selectedIndex].text=="Self"){
		document.getElementById("hidedraft").style.display="inline-block";
		document.getElementById("newuser").style.display="none";
	}
	else if(id.options[id.selectedIndex].text=="Others"){
		document.getElementById("hidedraft").style.display="none";
		document.getElementById("newuser").style.display="block";
	}
	else{
		document.getElementById("hidedraft").style.display="none";
		document.getElementById("newuser").style.display="none";
	}
}
function LoadImage(object){
		object.src=strBasePath+"images/imagecover.jpg";
		
	}
	function LoadVideo(object){
		object.src=strBasePath+"images/defaultvideo.jpg";
		
	}
	
	 function LoadArticle(object)
	 {
	 	object.src=strArticleImage;
	 	
	 }
	 
	 function LoadAppeal(object)
	 {
	 	object.src=strAppealImage;
	 	
	 }
	 
	 function LoadCampaign(object)
	 {
	 	object.src=strCampaignImage;
	 	
	 }
	 function LoadImageEvent(object)
	 {
	 	object.src=strEventImage;
	 	
	 	
	 }
	 function LoadImageAlbum(object)
	 {
	 	object.src=strBasePath+"images/imagecover.jpg";
	 	
	 }
	 function LoadUser(object){
		object.src=strBasePath+"images/empty_profile.gif";
	}
	
	function newWindow(object){
		window.open(object,"newwindow");
	}

	function newPage(pageurl){
	 
		 		document.location.href=strBasePath+'members/'+pageurl;
		 }
		 function HighLightTab(TabID)
		 {
		 	if(document.getElementById(TabID)){
		 	document.getElementById(TabID).className = "SelTab";}
		 }
		 function SideTab(TabID)
		 {
		 	
		 	if(document.getElementById(TabID)){
		 	document.getElementById(TabID).className = "articleTab";}
		 }
		 function ResizeImage(image, maxwidth, maxheight)
		 {		     
		         w = image.width;
		         h = image.height;	                 
		         if( w == 0 || h == 0 )
		         {
		             image.width = maxwidth;
		             image.height = maxheight;
		         }       
		 	if (w > maxwidth) image.width = maxwidth;
		 	if (h > maxheight) image.height = maxheight;
		 }