//show text area
function showtextarea(src,r1,c1,r2,c2,tp,cc1,cc2) {
if (src == null) return;
var iw, ih; // Set inner width and height
if (window.innerWidth == null) {
	iw = document.body.clientWidth;
	ih = document.body.clientHeight; 
	}
else {
	iw = window.innerWidth;
	ih = window.innerHeight;
	}
if (browser_width>=1024&&browser_height>=768) {
	var tr = r1;
	var tc = c1;
	document.write('<TEXTAREA name="'+src+'" rows="'+tr+'" cols="'+tc+'" wrap="'+tp+'" style="color:'+cc1+';background-color:'+cc2+';">');
	}
else {
	var tr = r2;
	var tc = c2;
	document.write('<TEXTAREA name="'+src+'" rows="'+tr+'" cols="'+tc+'" wrap="'+tp+'" style="color:'+cc1+';background-color:'+cc2+';">');
	}
}

//show table: BORDER, WIDTH,HEIGHT,CELLSPACING,CELLPADDING-1024, WIDTH,HEIGHT,CELLSPACING,CELLPADDING-800-->
function showtablestart(b,w1,h1,s1,p1,w2,h2,s2,p2) {
var iw, ih; // Set inner width and height
if (window.innerWidth == null) {
	iw = document.body.clientWidth;
	ih = document.body.clientHeight; 
	}
else {
	iw = window.innerWidth;
	ih = window.innerHeight;
	}
if (browser_width>=1024&&browser_height>=768) {
	document.write('<TABLE width="'+w1+'" height="'+h1+'" border="'+b+'" cellspacing="'+s1+'" cellpadding="'+p1+'">');
	}
else {
	document.write('<TABLE width="'+w2+'" height="'+h2+'" border="'+b+'" cellspacing="'+s2+'" cellpadding="'+p2+'">');
	}
}
//show table: SRC, NAME, WIDTH-1024, HEIGHT-1024, WIDTH-800, HEIGHT-800, WIDTH%, HEIGHT%-->
function showiframe(srcf,namef,w1,h1,w2,h2,wp,hp) {
if (srcf == null) return;
var iw, ih; // Set inner width and height
if (window.innerWidth == null) {
	iw = document.body.clientWidth;
	ih = document.body.clientHeight; 
	}
else {
	iw = window.innerWidth;
	ih = window.innerHeight;
	}
var trp, tcp; // Set procent
if ( wp == 1 ) {
	trp = "%";
	}
else {
	trp = "";
	}
if ( hp == 1 ) {
	tcp = "%";
	}
else {
	tcp = "";
	}
//make iframe
if (browser_width>=1024&&browser_height>=768) {
	var tr = w1;
	var tc = h1;
	document.write('<IFRAME name="'+namef+'" src="'+srcf+'" width="'+tr+trp+'" height="'+tc+tcp+'"></IFRAME>');
	}
else {
	var tr = w2;
	var tc = h2;
	document.write('<IFRAME name="'+namef+'" src="'+srcf+'" width="'+tr+trp+'" height="'+tc+tcp+'"></IFRAME>');
	}
}
