//<!--
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) ||  ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ) ; 

if (condition == true  )
    CanAnimate = true;
else
    CanAnimate = false;

function openchild(thisurl, v_width, v_height,subwindow){
    if (v_width <= 0)   {
        v_width='400';
    }
    if (v_height <= 0)   {
        v_height='500';
    }
	if (subwindow='')
	{
		subwindow = 'subwindow';
	}
    if ( CanAnimate ){ 
        msgWindow=window.open( '' ,subwindow,'left=0,top=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=' + v_width + ',height=' + v_height);
        msgWindow.focus();
        msgWindow.location.href = thisurl;
    }
    else {
        msgWindow=window.open( thisurl,subwindow,'left=0,top=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=' + v_width + ',height=' + v_height);
    } 
}

function openchild1(thisurl){
if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=355,height=390,top=10');
        msgWindow.focus();
        //msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=355,height=390,top=10');
}       
}

function openchild2(thisurl){
if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'childwin','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=500,height=450,top=10');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'childwin','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=500,height=450,top=10');
}       
}

function check_advanced_search(kw)  {
  error = 0;
  if (kw.length < 3) {
    error_message = "Please enter atleast 3 characters for search";
    error = 1;
  }

  if (error == 1) {
    alert(error_message);
    return false;
  } else {
    return true;
  }
}

function goto_url(thisurl) {
	location.href = thisurl;
}

function openchild3(thisurl)
{
	if ( CanAnimate )
	{ 
        msgWindow=window.open( '' ,'childwin','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=520,height=375,top=10');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
	}
	else 
	{
        msgWindow=window.open( thisurl,'childwin','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=520,height=375,top=10');
	}       
}
//-->


