/////////////show hide div
function show_mch(show,val,match_val)
{
 
 if(match_val==val)
  {
	 document.getElementById(show).style.display='block';
  }
  else
  {
     document.getElementById(show).style.display='none';
  }
}


// JavaScript Document
function set_src(id,src_)
{
	document.getElementById(id).src=src_;
}
	function Set_Cookie( name, value, expires, path, domain, secure )
				{
				// set time, it's in milliseconds
				var today = new Date();
				today.setTime( today.getTime() );
				
				/*
				if the expires variable is set, make the correct
				expires time, the current script below will set
				it for x number of days, to make it for hours,
				delete * 24, for minutes, delete * 60 * 24
				*/
				if ( expires )
				{
				expires = expires * 1000 * 60 * 60 * 24;
				}
				var expires_date = new Date( today.getTime() + (expires) );
				
				document.cookie = name + "=" +escape( value ) +
				( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
				( ( path ) ? ";path=" + path : "" ) +
				( ( domain ) ? ";domain=" + domain : "" ) +
				( ( secure ) ? ";secure" : "" );
				}
				
				function setCountry(iso,name){ //v3.0
					Set_Cookie('geo',iso,'','/','.hostso.com',0);
					Set_Cookie('ctry',name,'','/','.hostso.com',0);
					Set_Cookie('geo',iso,'','/','127.0.0.1',0);
					Set_Cookie('ctry',name,'','/','127.0.0.1',0);
					location.reload();
				}
				
				function is_child_of(parent, child) {
					if( child != null ) {			
						while( child.parentNode ) {
							if( (child = child.parentNode) == parent ) {
								return true;
							}
						}
					}
					return false;
				}
				function fixOnMouseOut(element, event, JavaScript_code) {
					var current_mouse_target = null;
					if( event.toElement ) {				
						current_mouse_target 			 = event.toElement;
					} else if( event.relatedTarget ) {				
						current_mouse_target 			 = event.relatedTarget;
					}
					if( !is_child_of(element, current_mouse_target) && element != current_mouse_target ) {
						document.getElementById('country_list').style.display = 'none';
						//document.getElementById('d_s_ext').style.visibility = 'visible';						
					}
				}

				function showCountryList()
				{
					document.getElementById('country_list').style.display = 'block';
					//document.getElementById('d_s_ext').style.visibility = 'hidden';
				}

				function hideSelect()
				{
					//document.getElementById('d_s_ext').style.visibility = 'hidden';
				}
				
				function showSelect()
				{
					//document.getElementById('d_s_ext').style.visibility = 'visible';	
				}
