// Disable Right Hand Clik


var message="All Content is Copyright (c) GenericPharma.com. No Reproductions Without Permission Please"; //
function click(i) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (i.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;



// Disable Right-Hand Click FireFox


var message="All Content is Copyright (c) GenericPharma.com. No Reproductions Without Permission Please";

function clickIE()
 
{if (document.all)
{(message);return false;}}
 
function clickNS(e) {
if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.  onmousedown=clickNS;}
else
{document.onmouseup=clickNS;document.oncontextmenu  =clickIE;}
 
document.oncontextmenu=new Function("return false")

// Hide Upgrade Option DIV

function setVisibility(id, visibility) {
	document.getElementById(id).style.display = visibility;
}


function submit_order(obj, frm) {
	if ( getBrowserName() == 'msie' || getBrowserName() == 'firefox' || getBrowserName() == 'mozilla' || getBrowserName() == 'opera' ) {
		obj.disabled=true;
		try {
			document.getElementById(frm).submit();	
		} catch(e) {
		
		}
	}
}


getBrowserName = function() {
	var browserName = "";
	
	var ua = navigator.userAgent.toLowerCase();
	if ( ua.indexOf( "opera" ) != -1 ) {
			browserName = "opera";
		} else if ( ua.indexOf( "msie" ) != -1 ) {
			browserName = "msie";
		} else if ( ua.indexOf( "safari" ) != -1 ) {
			browserName = "safari";
		} else if ( ua.indexOf( "mozilla" ) != -1 ) {
			if ( ua.indexOf( "firefox" ) != -1 ) {
				browserName = "firefox";
			} else {
				browserName = "mozilla";
			}
	}
	
	return browserName;
}

// POPUP WINDOW

function P(url,w,h) { // (url,width,height)
var p = "width=" + w + ",height=" + h + ",scrollbars=no";
window.open(url,"",p);

}
