function isOSAcceptable() {
  if(navigator.userAgent.indexOf('Windows NT 5.1') != -1){
  	return true; 
  } else if(navigator.userAgent.indexOf('Windows NT 6.0') != -1){ 
  	return true;
  }
  return false;
}

function isBrowserAcceptable() {
  if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1){
 	if(navigator.userAgent.indexOf('MSIE 6.0') != -1 || navigator.userAgent.indexOf('MSIE 7') != -1){
  		return true; 
  	} 
  }
  return false;
}

function getBrowser() {	
  var start = 0;
  var userAgent = navigator.userAgent;
//  alert(navigator.platform);
//  alert(navigator.userAgent);
  
  if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1){
  	//Browser is Internet Explorer
	if(navigator.userAgent.indexOf('MSIE 7') != -1){
  		return "Internet Explorer 7";
	}else if(navigator.userAgent.indexOf('MSIE 6.0') != -1){
  		return "Internet Explorer 6.0";
  	}else if(navigator.userAgent.indexOf('MSIE 5.5') != -1){
		return "Internet Explorer 5.5";
	}else if(navigator.userAgent.indexOf('MSIE 5') != -1){
		return "Internet Explorer 5";
	}else if(navigator.userAgent.indexOf('MSIE 4') != -1){
		return "Internet Explorer 4";
	}else{
		return "Internet Explorer";
	}
  }else if(navigator.appName.indexOf('Netscape') != -1){
	start = navigator.userAgent.indexOf('Firefox')
	if(start != -1){
		// Browser is Firefox
  		return userAgent.substring(start,navigator.userAgent.length);
  	}else{
		return "Netscape/Mozilla/Firefox";
	}
  }else if(navigator.userAgent.indexOf('Safari') != -1){
	start = navigator.userAgent.indexOf('Safari')
  	return userAgent.substring(start,navigator.userAgent.length);
  }else if(navigator.userAgent.indexOf('Opera') != -1){
	return "Opera";
  }else{
	return "Unknown Browser";
  }
}


function getOS() {	
  if(navigator.userAgent.indexOf('Windows NT 5.1') != -1){
  	return "Windows XP";
  }else if(navigator.userAgent.indexOf('Windows NT 6.0') != -1){ 
  	return "Windows Vista";
  }else if(navigator.userAgent.indexOf('Windows NT 5.0') != -1){
	return "Windows 2000";
  }else if(navigator.userAgent.indexOf('Windows 98; Win 9x 4.90') != -1){ 
	return "Windows Millenium Edition";
  }else if(navigator.userAgent.indexOf('Windows 98; HEP AS') != -1){
	return "Windows 98 SE";
  }else if(navigator.userAgent.indexOf('Windows 98;') != -1){
	return "Windows 98";
  }else if(navigator.userAgent.indexOf('Windows 95') != -1){
	return "Windows 95";
  }else if(navigator.userAgent.indexOf('Macintosh') != -1){
	return "Macintosh";	
  }else if(navigator.userAgent.indexOf('Linux') != -1){
	return "Linux";	
  }else{
  	return "Unknown OS";
  }
}
